1. Compilation Units

    1. Cairo
    2. Cairo.Font_Face
    3. Cairo.Font_Options
    4. Cairo.Image_Surface
    5. Cairo.PDF
    6. Cairo.Matrix
    7. Cairo.Pattern
    8. Cairo.Png
    9. Cairo.SVG
    10. Cairo.Region
    11. Cairo.Scaled_Font
    12. Cairo.Surface
    13. Fontconfig
    14. Gdk
    15. Gdk.Cairo
    16. Gdk.Color
    17. Gdk.Cursor
    18. Gdk.Device
    19. Gdk.Device_Manager
    20. Gdk.Device_Tool
    21. Gdk.Display
    22. Gdk.Display_Manager
    23. Gdk.Dnd
    24. Gdk.Drag_Contexts
    25. Gdk.Drawing_Context
    26. Gdk.Event
      1. Gdk.Event.Handler_Set_User_Data
    27. Gdk.Frame_Clock
    28. Gdk.Frame_Timings
    29. Gdk.GLContext
    30. Gdk.Input
      1. Gdk.Input.Input_Add
    31. Gdk.Keyval
    32. Gdk.Main
    33. Gdk.Monitor
    34. Gdk.Pixbuf
    35. Gdk.RGBA
    36. Gdk.Property
    37. Gdk.Rectangle
    38. Gdk.Screen
    39. Gdk.Seat
    40. Gdk.Threads
    41. Gdk.Types
    42. Gdk.Types.Keysyms
    43. Gdk.Visual
    44. Gdk.Window
      1. Gdk.Window.Invalidate_Maybe_Recurse_User_Data
    45. Gdk.Window_Attr
    46. Glib
    47. Glib.Action
    48. Glib.Action_Group
    49. Glib.Action_Map
    50. Glib.Application
    51. Glib.Cancellable
      1. Glib.Cancellable.Connect_User_Data
    52. Glib.Convert
    53. Glib.Enums
    54. Glib.GSlist
      1. Glib.GSlist.Generic_SList
    55. Glib.Error
    56. Glib.G_Icon
    57. Glib.Generic_Properties
      1. Glib.Generic_Properties.Generic_Enumeration_Property
      2. Glib.Generic_Properties.Generic_Internal_Boxed_Property
      3. Glib.Generic_Properties.Generic_Internal_Discrete_Property
    58. Glib.Glist
      1. Glib.Glist.Generic_List
    59. Glib.Gnodes
      1. Glib.Gnodes.Gnode_Data
    60. Glib.Graphs
    61. Glib.Graphs.Layouts
      1. Glib.Graphs.Layouts.Layered_Layouts
    62. Glib.IOChannel
    63. Glib.Key_File
    64. Glib.List_Model
    65. Glib.Main
      1. Glib.Main.Generic_Sources
    66. Glib.Menu
    67. Glib.Menu_Model
    68. Glib.Messages
    69. Glib.Module
    70. Glib.Notification
    71. Glib.Object
      1. Glib.Object.User_Data
      2. Glib.Object.User_Data_Closure
    72. Glib.Option
      1. Glib.Option.Set_Translate_Func_User_Data
    73. Glib.Poll
    74. Glib.Properties
    75. Glib.Properties.Creation
    76. Glib.Simple_Action
    77. Glib.Simple_Action_Group
    78. Glib.Spawn
    79. Glib.String
    80. Glib.Type_Conversion_Hooks
      1. Glib.Type_Conversion_Hooks.Hook_Registrator
    81. Glib.Types
      1. Glib.Types.Implements
    82. Glib.Unicode
    83. Glib.Utils
    84. Glib.Values
    85. Glib.Variant
    86. Glib.XML
    87. Gtk
    88. Gtk.About_Dialog
    89. Gtk.Accel_Group
    90. Gtk.Accel_Label
    91. Gtk.Accel_Map
      1. Gtk.Accel_Map.Foreach_Unfiltered_User_Data
      2. Gtk.Accel_Map.Foreach_User_Data
    92. Gtk.Action
    93. Gtk.Action_Bar
    94. Gtk.Action_Group
      1. Gtk.Action_Group.Set_Translate_Func_User_Data
    95. Gtk.Actionable
    96. Gtk.Activatable
    97. Gtk.Adjustment
    98. Gtk.Alignment
    99. Gtk.Application
    100. Gtk.Application_Window
    101. Gtk.Arguments
    102. Gtk.Arrow
    103. Gtk.Aspect_Frame
    104. Gtk.Assistant
      1. Gtk.Assistant.Set_Forward_Page_Func_User_Data
    105. Gtk.Bin
    106. Gtk.Binding_Set
    107. Gtk.Bindings
    108. Gtk.Box
    109. Gtk.Buildable
    110. Gtk.Builder
    111. Gtk.Button
    112. Gtk.Button_Box
    113. Gtk.Calendar
      1. Gtk.Calendar.Set_Detail_Func_User_Data
    114. Gtk.Cell_Area
      1. Gtk.Cell_Area.Foreach_Alloc_User_Data
      2. Gtk.Cell_Area.Foreach_User_Data
      3. Gtk.Cell_Area.Set_Cell_Data_Func_User_Data
    115. Gtk.Cell_Area_Box
      1. Gtk.Cell_Area_Box.Set_Cell_Data_Func_User_Data
    116. Gtk.Cell_Area_Context
    117. Gtk.Cell_Editable
    118. Gtk.Cell_Layout
      1. Gtk.Cell_Layout.Set_Cell_Data_Func_User_Data
    119. Gtk.Cell_Renderer
    120. Gtk.Cell_Renderer_Accel
    121. Gtk.Cell_Renderer_Combo
    122. Gtk.Cell_Renderer_Pixbuf
    123. Gtk.Cell_Renderer_Progress
    124. Gtk.Cell_Renderer_Spin
    125. Gtk.Cell_Renderer_Spinner
    126. Gtk.Cell_Renderer_Text
    127. Gtk.Cell_Renderer_Toggle
    128. Gtk.Cell_View
      1. Gtk.Cell_View.Set_Cell_Data_Func_User_Data
    129. Gtk.Check_Button
    130. Gtk.Check_Menu_Item
    131. Gtk.Clipboard
    132. Gtk.Color_Button
    133. Gtk.Color_Chooser
    134. Gtk.Color_Chooser_Dialog
    135. Gtk.Color_Chooser_Widget
    136. Gtk.Color_Selection
    137. Gtk.Color_Selection_Dialog
    138. Gtk.Combo_Box
      1. Gtk.Combo_Box.Set_Cell_Data_Func_User_Data
      2. Gtk.Combo_Box.Set_Row_Separator_Func_User_Data
    139. Gtk.Combo_Box_Text
      1. Gtk.Combo_Box_Text.Set_Cell_Data_Func_User_Data
    140. Gtk.Container
      1. Gtk.Container.Forall_User_Data
      2. Gtk.Container.Foreach_User_Data
    141. Gtk.Css_Provider
    142. Gtk.Css_Section
    143. Gtk.Dialog
    144. Gtk.Dnd
    145. Gtk.Drawing_Area
    146. Gtk.Editable
    147. Gtk.Entry_Buffer
    148. Gtk.Entry_Completion
      1. Gtk.Entry_Completion.Set_Cell_Data_Func_User_Data
      2. Gtk.Entry_Completion.Set_Match_Func_User_Data
    149. Gtk.Enums
    150. Gtk.Event_Box
    151. Gtk.Event_Controller
    152. Gtk.Expander
    153. Gtk.File_Chooser
    154. Gtk.File_Chooser_Button
    155. Gtk.File_Chooser_Dialog
    156. Gtk.File_Chooser_Widget
    157. Gtk.File_Filter
      1. Gtk.File_Filter.Add_Custom_User_Data
    158. Gtk.Fixed
    159. Gtk.Flow_Box
      1. Gtk.Flow_Box.Bind_Model_User_Data
      2. Gtk.Flow_Box.Selected_Foreach_User_Data
      3. Gtk.Flow_Box.Set_Filter_Func_User_Data
      4. Gtk.Flow_Box.Set_Sort_Func_User_Data
    160. Gtk.Flow_Box_Child
    161. Gtk.Font_Button
      1. Gtk.Font_Button.Set_Filter_Func_User_Data
    162. Gtk.Font_Chooser
      1. Gtk.Font_Chooser.Set_Filter_Func_User_Data
    163. Gtk.Font_Chooser_Dialog
      1. Gtk.Font_Chooser_Dialog.Set_Filter_Func_User_Data
    164. Gtk.Font_Chooser_Widget
      1. Gtk.Font_Chooser_Widget.Set_Filter_Func_User_Data
    165. Gtk.Font_Selection
    166. Gtk.Font_Selection_Dialog
    167. Gtk.Frame
    168. Gtk.GLArea
    169. Gtk.GRange
    170. Gtk.GEntry
    171. Gtk.Gesture
    172. Gtk.Gesture_Drag
    173. Gtk.Gesture_Long_Press
    174. Gtk.Gesture_Multi_Press
    175. Gtk.Gesture_Pan
    176. Gtk.Gesture_Rotate
    177. Gtk.Gesture_Single
    178. Gtk.Gesture_Swipe
    179. Gtk.Gesture_Zoom
    180. Gtk.Gradient
    181. Gtk.Grid
    182. Gtk.Handle_Box
    183. Gtk.Hbutton_Box
    184. Gtk.Header_Bar
    185. Gtk.IM_Context
    186. Gtk.IM_Context_Simple
    187. Gtk.IM_Multi_Context
    188. Gtk.Hsv
    189. Gtk.Icon_Factory
    190. Gtk.Icon_Set
    191. Gtk.Icon_Source
    192. Gtk.Icon_Theme
    193. Gtk.Icon_View
      1. Gtk.Icon_View.Selected_Foreach_User_Data
      2. Gtk.Icon_View.Set_Cell_Data_Func_User_Data
    194. Gtk.Image
    195. Gtk.Image_Menu_Item
    196. Gtk.Info_Bar
    197. Gtk.Invisible
    198. Gtk.Label
    199. Gtk.Layout
    200. Gtk.Level_Bar
    201. Gtk.Link_Button
    202. Gtk.List_Box
      1. Gtk.List_Box.Bind_Model_User_Data
      2. Gtk.List_Box.Selected_Foreach_User_Data
      3. Gtk.List_Box.Set_Filter_Func_User_Data
      4. Gtk.List_Box.Set_Header_Func_User_Data
      5. Gtk.List_Box.Set_Sort_Func_User_Data
    203. Gtk.List_Box_Row
    204. Gtk.List_Store
      1. Gtk.List_Store.Foreach_User_Data
      2. Gtk.List_Store.Set_Default_Sort_Func_User_Data
      3. Gtk.List_Store.Set_Sort_Func_User_Data
    205. Gtk.Main
    206. Gtk.Menu
      1. Gtk.Menu.Popup_For_Device_User_Data
      2. Gtk.Menu.Popup_User_Data
    207. Gtk.Menu_Bar
    208. Gtk.Menu_Button
    209. Gtk.Menu_Item
    210. Gtk.Menu_Shell
    211. Gtk.Menu_Tool_Button
    212. Gtk.Message_Dialog
    213. Gtk.Misc
    214. Gtk.Notebook
    215. Gtk.Offscreen_Window
    216. Gtk.Orientable
    217. Gtk.Overlay
    218. Gtk.Page_Setup
    219. Gtk.Paned
    220. Gtk.Paper_Size
    221. Gtk.Popover
    222. Gtk.Print_Context
    223. Gtk.Print_Operation
    224. Gtk.Print_Operation_Preview
    225. Gtk.Print_Settings
      1. Gtk.Print_Settings.Foreach_User_Data
    226. Gtk.Progress_Bar
    227. Gtk.Radio_Action
    228. Gtk.Radio_Button
    229. Gtk.Radio_Menu_Item
    230. Gtk.Radio_Tool_Button
    231. Gtk.Rc
    232. Gtk.Recent_Action
      1. Gtk.Recent_Action.Set_Sort_Func_User_Data
    233. Gtk.Recent_Chooser
      1. Gtk.Recent_Chooser.Set_Sort_Func_User_Data
    234. Gtk.Recent_Chooser_Dialog
      1. Gtk.Recent_Chooser_Dialog.Set_Sort_Func_User_Data
    235. Gtk.Recent_Chooser_Menu
      1. Gtk.Recent_Chooser_Menu.Set_Sort_Func_User_Data
    236. Gtk.Recent_Chooser_Widget
      1. Gtk.Recent_Chooser_Widget.Set_Sort_Func_User_Data
    237. Gtk.Recent_Filter
      1. Gtk.Recent_Filter.Add_Custom_User_Data
    238. Gtk.Recent_Info
    239. Gtk.Recent_Manager
    240. Gtk.Revealer
    241. Gtk.Scale
    242. Gtk.Scale_Button
    243. Gtk.Scrollable
    244. Gtk.Scrollbar
    245. Gtk.Scrolled_Window
    246. Gtk.Search_Bar
    247. Gtk.Search_Entry
    248. Gtk.Selection_Data
    249. Gtk.Separator
    250. Gtk.Separator_Menu_Item
    251. Gtk.Separator_Tool_Item
    252. Gtk.Settings
    253. Gtk.Shortcuts_Window
    254. Gtk.Size_Group
    255. Gtk.Spin_Button
    256. Gtk.Spinner
    257. Gtk.Stack
    258. Gtk.Stack_Switcher
    259. Gtk.Status_Bar
    260. Gtk.Status_Icon
    261. Gtk.Stock
    262. Gtk.Style
    263. Gtk.Style_Context
    264. Gtk.Style_Properties
    265. Gtk.Style_Provider
    266. Gtk.Switch
    267. Gtk.Symbolic_Color
    268. Gtk.Table
    269. Gtk.Target_Entry
    270. Gtk.Target_List
    271. Gtk.Tearoff_Menu_Item
    272. Gtk.Text_Attributes
    273. Gtk.Text_Buffer
    274. Gtk.Text_Child
    275. Gtk.Text_Child_Anchor
    276. Gtk.Text_Iter
    277. Gtk.Text_Mark
    278. Gtk.Text_Tag
    279. Gtk.Text_Tag_Table
      1. Gtk.Text_Tag_Table.Foreach_User_Data
    280. Gtk.Text_View
    281. Gtk.Theming_Engine
    282. Gtk.Toggle_Action
    283. Gtk.Toggle_Button
    284. Gtk.Toggle_Tool_Button
    285. Gtk.Tool_Button
    286. Gtk.Tool_Item
    287. Gtk.Tool_Item_Group
    288. Gtk.Tool_Palette
    289. Gtk.Tool_Shell
    290. Gtk.Toolbar
    291. Gtk.Tooltip
    292. Gtk.Tree_Drag_Dest
    293. Gtk.Tree_Drag_Source
    294. Gtk.Tree_Model
      1. Gtk.Tree_Model.Foreach_User_Data
    295. Gtk.Tree_Model.Utils
    296. Gtk.Tree_Model_Filter
      1. Gtk.Tree_Model_Filter.Foreach_User_Data
      2. Gtk.Tree_Model_Filter.Set_Modify_Func_User_Data
      3. Gtk.Tree_Model_Filter.Set_Visible_Func_User_Data
    297. Gtk.Tree_Model_Sort
      1. Gtk.Tree_Model_Sort.Foreach_User_Data
      2. Gtk.Tree_Model_Sort.Set_Default_Sort_Func_User_Data
      3. Gtk.Tree_Model_Sort.Set_Sort_Func_User_Data
    298. Gtk.Tree_Row_Reference
    299. Gtk.Tree_Selection
      1. Gtk.Tree_Selection.Selected_Foreach_User_Data
      2. Gtk.Tree_Selection.Set_Select_Function_User_Data
    300. Gtk.Tree_Sortable
      1. Gtk.Tree_Sortable.Set_Default_Sort_Func_User_Data
      2. Gtk.Tree_Sortable.Set_Sort_Func_User_Data
    301. Gtk.Tree_Store
      1. Gtk.Tree_Store.Foreach_User_Data
      2. Gtk.Tree_Store.Generic_Set
      3. Gtk.Tree_Store.Set_Default_Sort_Func_User_Data
      4. Gtk.Tree_Store.Set_Sort_Func_User_Data
    302. Gtk.Tree_View
      1. Gtk.Tree_View.Insert_Column_With_Data_Func_User_Data
      2. Gtk.Tree_View.Map_Expanded_Rows_User_Data
      3. Gtk.Tree_View.Set_Column_Drag_Function_User_Data
      4. Gtk.Tree_View.Set_Destroy_Count_Func_User_Data
      5. Gtk.Tree_View.Set_Row_Separator_Func_User_Data
      6. Gtk.Tree_View.Set_Search_Equal_Func_User_Data
      7. Gtk.Tree_View.Set_Search_Position_Func_User_Data
    303. Gtk.Tree_View_Column
      1. Gtk.Tree_View_Column.Set_Cell_Data_Func_User_Data
    304. Gtk.Type_Conversion
    305. Gtk.UI_Manager
    306. Gtk.Vbutton_Box
    307. Gtk.Viewport
    308. Gtk.Volume_Button
    309. Gtk.Widget
      1. Gtk.Widget.Add_Tick_Callback_User_Data
      2. Gtk.Widget.Set_Connect_Func_User_Data
    310. Gtk.Window
    311. Gtkada
    312. Gtkada.Abstract_List_Model
    313. Gtkada.Abstract_Tree_Model
    314. Gtkada.Application
    315. Gtkada.Bindings
    316. Gtkada.Builder
    317. Gtkada.C
      1. Gtkada.C.Unbounded_Arrays
    318. Gtkada.Canvas
    319. Gtkada.Canvas_View
    320. Gtkada.Canvas_View.Astar
    321. Gtkada.Canvas_View.Links
    322. Gtkada.Canvas_View.Models
      1. Gtkada.Canvas_View.Models.Rtree_Models
    323. Gtkada.Canvas_View.Models.Layers
    324. Gtkada.Canvas_View.Objects
    325. Gtkada.Canvas_View.Rtrees
    326. Gtkada.Canvas_View.Views
    327. Gtkada.Dialogs
    328. Gtkada.File_Selection
    329. Gtkada.Handlers
    330. Gtkada.Intl
    331. Gtkada.MDI
      1. Gtkada.MDI.Desktop
    332. Gtkada.Multi_Paned
    333. Gtkada.Multiline_Entry
    334. Gtkada.Pixmaps
    335. Gtkada.Printing
    336. Gtkada.Stock_Icons
    337. Gtkada.Stock_Labels
    338. Gtkada.Style
    339. Gtkada.Types
    340. Pango
    341. Pango.Attributes
    342. Pango.Cairo
    343. Pango.Context
    344. Pango.Coverage
    345. Pango.Enums
    346. Pango.Font
    347. Pango.Font_Face
    348. Pango.Font_Family
    349. Pango.Font_Map
    350. Pango.Font_Metrics
    351. Pango.Fontset
      1. Pango.Fontset.Foreach_User_Data
    352. Pango.Language
    353. Pango.Layout
    354. Pango.Matrix
    355. Pango.Tabs
  2. Tagged Types

    1. Gdk.Device.Gdk_Device_Record
    2. Gdk.Device_Manager.Gdk_Device_Manager_Record
    3. Gdk.Device_Tool.Gdk_Device_Tool_Record
    4. Gdk.Display.Gdk_Display_Record
    5. Gdk.Drag_Contexts.Drag_Context_Record
    6. Gdk.Drawing_Context.Gdk_Drawing_Context_Record
    7. Gdk.Frame_Clock.Gdk_Frame_Clock_Record
    8. Gdk.Frame_Timings.Gdk_Frame_Timings
    9. Gdk.GLContext.Gdk_GLContext_Record
    10. Gdk.Monitor.Gdk_Monitor_Record
    11. Gdk.Pixbuf.Gdk_Pixbuf_Record
    12. Gdk.Screen.Gdk_Screen_Record
    13. Glib.Application.Gapplication_Command_Line_Record
    14. Glib.Application.Gapplication_Record
    15. Gdk.Seat.Gdk_Seat_Record
    16. Glib.C_Boxed
    17. Glib.Cancellable.Gcancellable_Record
    18. Glib.Graphs.Layouts.Base_Dummy_Vertex
    19. Glib.Graphs.Edge
    20. Glib.Graphs.Vertex
    21. Glib.Menu.Gmenu_Item_Record
    22. Glib.Menu.Gmenu_Record
    23. Glib.Menu_Model.Gmenu_Attribute_Iter_Record
    24. Glib.Menu_Model.Gmenu_Link_Iter_Record
    25. Glib.Menu_Model.Gmenu_Model_Record
    26. Glib.Object.GObject_Record
    27. Glib.Notification.Gnotification_Record
    28. Glib.Object.G_Binding_Record
    29. Glib.Option.Goption_Context
    30. Glib.Simple_Action.Gsimple_Action_Record
    31. Glib.Simple_Action_Group.Gsimple_Action_Group_Record
    32. Glib.Variant.Gvariant
    33. Gtk.About_Dialog.Gtk_About_Dialog_Record
    34. Gtk.Accel_Group.Gtk_Accel_Group_Record
    35. Gtk.Accel_Label.Gtk_Accel_Label_Record
    36. Gtk.Accel_Map.Gtk_Accel_Map_Record
    37. Gtk.Action.Gtk_Action_Record
    38. Gtk.Action_Bar.Gtk_Action_Bar_Record
    39. Gtk.Action_Group.Gtk_Action_Group_Record
    40. Gtk.Adjustment.Gtk_Adjustment_Record
    41. Gtk.Alignment.Gtk_Alignment_Record
    42. Gtk.Application.Gtk_Application_Record
    43. Gtk.Application_Window.Gtk_Application_Window_Record
    44. Gtk.Arrow.Gtk_Arrow_Record
    45. Gtk.Aspect_Frame.Gtk_Aspect_Frame_Record
    46. Gtk.Assistant.Gtk_Assistant_Record
    47. Gtk.Bin.Gtk_Bin_Record
    48. Gtk.Box.Gtk_Box_Record
    49. Gtk.Builder.Gtk_Builder_Record
    50. Gtk.Button.Gtk_Button_Record
    51. Gtk.Button_Box.Gtk_Button_Box_Record
    52. Gtk.Calendar.Gtk_Calendar_Record
    53. Gtk.Cell_Area.Gtk_Cell_Area_Record
    54. Gtk.Cell_Area_Box.Gtk_Cell_Area_Box_Record
    55. Gtk.Cell_Area_Context.Gtk_Cell_Area_Context_Record
    56. Gtk.Cell_Renderer.Gtk_Cell_Renderer_Record
    57. Gtk.Cell_Renderer_Accel.Gtk_Cell_Renderer_Accel_Record
    58. Gtk.Cell_Renderer_Combo.Gtk_Cell_Renderer_Combo_Record
    59. Gtk.Cell_Renderer_Pixbuf.Gtk_Cell_Renderer_Pixbuf_Record
    60. Gtk.Cell_Renderer_Progress.Gtk_Cell_Renderer_Progress_Record
    61. Gtk.Cell_Renderer_Spin.Gtk_Cell_Renderer_Spin_Record
    62. Gtk.Cell_Renderer_Spinner.Gtk_Cell_Renderer_Spinner_Record
    63. Gtk.Cell_Renderer_Text.Gtk_Cell_Renderer_Text_Record
    64. Gtk.Cell_Renderer_Toggle.Gtk_Cell_Renderer_Toggle_Record
    65. Gtk.Cell_View.Gtk_Cell_View_Record
    66. Gtk.Check_Button.Gtk_Check_Button_Record
    67. Gtk.Check_Menu_Item.Gtk_Check_Menu_Item_Record
    68. Gtk.Clipboard.Gtk_Clipboard_Record
    69. Gtk.Color_Button.Gtk_Color_Button_Record
    70. Gtk.Color_Chooser_Dialog.Gtk_Color_Chooser_Dialog_Record
    71. Gtk.Color_Chooser_Widget.Gtk_Color_Chooser_Widget_Record
    72. Gtk.Color_Selection.Gtk_Color_Selection_Record
    73. Gtk.Color_Selection_Dialog.Gtk_Color_Selection_Dialog_Record
    74. Gtk.Combo_Box.Gtk_Combo_Box_Record
    75. Gtk.Combo_Box_Text.Gtk_Combo_Box_Text_Record
    76. Gtk.Container.Gtk_Container_Record
    77. Gtk.Css_Provider.Gtk_Css_Provider_Record
    78. Gtk.Css_Section.Gtk_Css_Section
    79. Gtk.Dialog.Gtk_Dialog_Record
    80. Gtk.Drawing_Area.Gtk_Drawing_Area_Record
    81. Gtk.Entry_Buffer.Gtk_Entry_Buffer_Record
    82. Gtk.Entry_Completion.Gtk_Entry_Completion_Record
    83. Gtk.Event_Box.Gtk_Event_Box_Record
    84. Gtk.Event_Controller.Gtk_Event_Controller_Record
    85. Gtk.Expander.Gtk_Expander_Record
    86. Gtk.File_Chooser_Button.Gtk_File_Chooser_Button_Record
    87. Gtk.File_Chooser_Dialog.Gtk_File_Chooser_Dialog_Record
    88. Gtk.File_Chooser_Widget.Gtk_File_Chooser_Widget_Record
    89. Gtk.File_Filter.Gtk_File_Filter_Record
    90. Gtk.Fixed.Gtk_Fixed_Record
    91. Gtk.Flow_Box.Gtk_Flow_Box_Record
    92. Gtk.Flow_Box_Child.Gtk_Flow_Box_Child_Record
    93. Gtk.Font_Button.Gtk_Font_Button_Record
    94. Gtk.Font_Chooser_Dialog.Gtk_Font_Chooser_Dialog_Record
    95. Gtk.Font_Chooser_Widget.Gtk_Font_Chooser_Widget_Record
    96. Gtk.Font_Selection.Gtk_Font_Selection_Record
    97. Gtk.Font_Selection_Dialog.Gtk_Font_Selection_Dialog_Record
    98. Gtk.Frame.Gtk_Frame_Record
    99. Gtk.GLArea.Gtk_GLArea_Record
    100. Gtk.GRange.Gtk_Range_Record
    101. Gtk.GEntry.Gtk_Entry_Record
    102. Gtk.Gesture.Gtk_Gesture_Record
    103. Gtk.Gesture_Drag.Gtk_Gesture_Drag_Record
    104. Gtk.Gesture_Long_Press.Gtk_Gesture_Long_Press_Record
    105. Gtk.Gesture_Multi_Press.Gtk_Gesture_Multi_Press_Record
    106. Gtk.Gesture_Pan.Gtk_Gesture_Pan_Record
    107. Gtk.Gesture_Rotate.Gtk_Gesture_Rotate_Record
    108. Gtk.Gesture_Single.Gtk_Gesture_Single_Record
    109. Gtk.Gesture_Swipe.Gtk_Gesture_Swipe_Record
    110. Gtk.Gesture_Zoom.Gtk_Gesture_Zoom_Record
    111. Gtk.Gradient.Gtk_Gradient
    112. Gtk.Grid.Gtk_Grid_Record
    113. Gtk.Handle_Box.Gtk_Handle_Box_Record
    114. Gtk.Hbutton_Box.Gtk_Hbutton_Box_Record
    115. Gtk.Header_Bar.Gtk_Header_Bar_Record
    116. Gtk.IM_Context.Gtk_IM_Context_Record
    117. Gtk.IM_Context_Simple.Gtk_IM_Context_Simple_Record
    118. Gtk.IM_Multi_Context.Gtk_IM_Multi_Context_Record
    119. Gtk.Hsv.Gtk_Hsv_Record
    120. Gtk.Icon_Factory.Gtk_Icon_Factory_Record
    121. Gtk.Icon_Set.Gtk_Icon_Set
    122. Gtk.Icon_Source.Gtk_Icon_Source
    123. Gtk.Icon_Theme.Gtk_Icon_Info_Record
    124. Gtk.Icon_Theme.Gtk_Icon_Theme_Record
    125. Gtk.Icon_View.Gtk_Icon_View_Record
    126. Gtk.Image.Gtk_Image_Record
    127. Gtk.Image_Menu_Item.Gtk_Image_Menu_Item_Record
    128. Gtk.Info_Bar.Gtk_Info_Bar_Record
    129. Gtk.Invisible.Gtk_Invisible_Record
    130. Gtk.Label.Gtk_Label_Record
    131. Gtk.Layout.Gtk_Layout_Record
    132. Gtk.Level_Bar.Gtk_Level_Bar_Record
    133. Gtk.Link_Button.Gtk_Link_Button_Record
    134. Gtk.List_Box.Gtk_List_Box_Record
    135. Gtk.List_Box_Row.Gtk_List_Box_Row_Record
    136. Gtk.List_Store.Gtk_List_Store_Record
    137. Gtk.Menu.Gtk_Menu_Record
    138. Gtk.Menu_Bar.Gtk_Menu_Bar_Record
    139. Gtk.Menu_Button.Gtk_Menu_Button_Record
    140. Gtk.Menu_Item.Gtk_Menu_Item_Record
    141. Gtk.Menu_Shell.Gtk_Menu_Shell_Record
    142. Gtk.Menu_Tool_Button.Gtk_Menu_Tool_Button_Record
    143. Gtk.Message_Dialog.Gtk_Message_Dialog_Record
    144. Gtk.Misc.Gtk_Misc_Record
    145. Gtk.Notebook.Gtk_Notebook_Record
    146. Gtk.Offscreen_Window.Gtk_Offscreen_Window_Record
    147. Gtk.Overlay.Gtk_Overlay_Record
    148. Gtk.Page_Setup.Gtk_Page_Setup_Record
    149. Gtk.Paned.Gtk_Paned_Record
    150. Gtk.Paper_Size.Gtk_Paper_Size
    151. Gtk.Popover.Gtk_Popover_Record
    152. Gtk.Print_Context.Gtk_Print_Context_Record
    153. Gtk.Print_Operation.Gtk_Print_Operation_Record
    154. Gtk.Print_Settings.Gtk_Print_Settings_Record
    155. Gtk.Progress_Bar.Gtk_Progress_Bar_Record
    156. Gtk.Radio_Action.Gtk_Radio_Action_Record
    157. Gtk.Radio_Button.Gtk_Radio_Button_Record
    158. Gtk.Radio_Menu_Item.Gtk_Radio_Menu_Item_Record
    159. Gtk.Radio_Tool_Button.Gtk_Radio_Tool_Button_Record
    160. Gtk.Recent_Action.Gtk_Recent_Action_Record
    161. Gtk.Recent_Chooser_Dialog.Gtk_Recent_Chooser_Dialog_Record
    162. Gtk.Recent_Chooser_Menu.Gtk_Recent_Chooser_Menu_Record
    163. Gtk.Recent_Chooser_Widget.Gtk_Recent_Chooser_Widget_Record
    164. Gtk.Recent_Filter.Gtk_Recent_Filter_Record
    165. Gtk.Recent_Info.Gtk_Recent_Info
    166. Gtk.Recent_Manager.Gtk_Recent_Manager_Record
    167. Gtk.Revealer.Gtk_Revealer_Record
    168. Gtk.Scale.Gtk_Scale_Record
    169. Gtk.Scale_Button.Gtk_Scale_Button_Record
    170. Gtk.Scrollbar.Gtk_Scrollbar_Record
    171. Gtk.Scrolled_Window.Gtk_Scrolled_Window_Record
    172. Gtk.Search_Bar.Gtk_Search_Bar_Record
    173. Gtk.Search_Entry.Gtk_Search_Entry_Record
    174. Gtk.Selection_Data.Gtk_Selection_Data
    175. Gtk.Separator.Gtk_Separator_Record
    176. Gtk.Separator_Menu_Item.Gtk_Separator_Menu_Item_Record
    177. Gtk.Separator_Tool_Item.Gtk_Separator_Tool_Item_Record
    178. Gtk.Settings.Gtk_Settings_Record
    179. Gtk.Shortcuts_Window.Gtk_Shortcuts_Window_Record
    180. Gtk.Size_Group.Gtk_Size_Group_Record
    181. Gtk.Spin_Button.Gtk_Spin_Button_Record
    182. Gtk.Spinner.Gtk_Spinner_Record
    183. Gtk.Stack.Gtk_Stack_Record
    184. Gtk.Stack_Switcher.Gtk_Stack_Switcher_Record
    185. Gtk.Status_Bar.Gtk_Status_Bar_Record
    186. Gtk.Status_Icon.Gtk_Status_Icon_Record
    187. Gtk.Style.Gtk_Style_Record
    188. Gtk.Style_Context.Gtk_Style_Context_Record
    189. Gtk.Style_Properties.Gtk_Style_Properties_Record
    190. Gtk.Switch.Gtk_Switch_Record
    191. Gtk.Symbolic_Color.Gtk_Symbolic_Color
    192. Gtk.Table.Gtk_Table_Record
    193. Gtk.Target_List.Gtk_Target_List
    194. Gtk.Tearoff_Menu_Item.Gtk_Tearoff_Menu_Item_Record
    195. Gtk.Text_Buffer.Gtk_Text_Buffer_Record
    196. Gtk.Text_Child.Gtk_Text_Child_Anchor_Record
    197. Gtk.Text_Child_Anchor.Gtk_Text_Child_Anchor_Record
    198. Gtk.Text_Mark.Gtk_Text_Mark_Record
    199. Gtk.Text_Tag.Gtk_Text_Tag_Record
    200. Gtk.Text_Tag_Table.Gtk_Text_Tag_Table_Record
    201. Gtk.Text_View.Gtk_Text_View_Record
    202. Gtk.Theming_Engine.Gtk_Theming_Engine_Record
    203. Gtk.Toggle_Action.Gtk_Toggle_Action_Record
    204. Gtk.Toggle_Button.Gtk_Toggle_Button_Record
    205. Gtk.Toggle_Tool_Button.Gtk_Toggle_Tool_Button_Record
    206. Gtk.Tool_Button.Gtk_Tool_Button_Record
    207. Gtk.Tool_Item.Gtk_Tool_Item_Record
    208. Gtk.Tool_Item_Group.Gtk_Tool_Item_Group_Record
    209. Gtk.Tool_Palette.Gtk_Tool_Palette_Record
    210. Gtk.Toolbar.Gtk_Toolbar_Record
    211. Gtk.Tooltip.Gtk_Tooltip_Record
    212. Gtk.Tree_Model.Gtk_Root_Tree_Model_Record
    213. Gtk.Tree_Model.Gtk_Tree_Path
    214. Gtk.Tree_Model_Filter.Gtk_Tree_Model_Filter_Record
    215. Gtk.Tree_Model_Sort.Gtk_Tree_Model_Sort_Record
    216. Gtk.Tree_Row_Reference.Gtk_Tree_Row_Reference
    217. Gtk.Tree_Selection.Gtk_Tree_Selection_Record
    218. Gtk.Tree_Store.Gtk_Tree_Store_Record
    219. Gtk.Tree_View.Gtk_Tree_View_Record
    220. Gtk.Tree_View_Column.Gtk_Tree_View_Column_Record
    221. Gtk.UI_Manager.Gtk_UI_Manager_Record
    222. Gtk.Vbutton_Box.Gtk_Vbutton_Box_Record
    223. Gtk.Viewport.Gtk_Viewport_Record
    224. Gtk.Volume_Button.Gtk_Volume_Button_Record
    225. Gtk.Widget.Gtk_Widget_Record
    226. Gtk.Window.Gtk_Window_Group_Record
    227. Gtk.Window.Gtk_Window_Record
    228. Gtkada.Abstract_List_Model.Gtk_Abstract_List_Model_Record
    229. Gtkada.Abstract_Tree_Model.Gtk_Abstract_Tree_Model_Record
    230. Gtkada.Application.Gtkada_Application_Record
    231. Gtkada.Builder.Gtkada_Builder_Record
    232. Gtkada.Canvas.Buffered_Item_Record
    233. Gtkada.Canvas.Canvas_Item_Record
    234. Gtkada.Canvas.Canvas_Link_Record
    235. Gtkada.Canvas_View.Abstract_Item_Record
    236. Gtkada.Canvas.Interactive_Canvas_Record
    237. Gtkada.Canvas_View.Canvas_Item_Record
    238. Gtkada.Canvas_View.Canvas_Link_Record
    239. Gtkada.Canvas_View.Canvas_Model_Record
    240. Gtkada.Canvas_View.Canvas_View_Record
    241. Gtkada.Canvas_View.Container_Item_Record
    242. Gtkada.Canvas_View.Editable_Text_Item_Record
    243. Gtkada.Canvas_View.Ellipse_Item_Record
    244. Gtkada.Canvas_View.Hr_Item_Record
    245. Gtkada.Canvas_View.Image_Item_Record
    246. Gtkada.Canvas_View.Models.Rtree_Models.Rtree_Model_Record
    247. Gtkada.Canvas_View.List_Canvas_Model_Record
    248. Gtkada.Canvas_View.Polyline_Item_Record
    249. Gtkada.Canvas_View.Rtrees.Rtree
    250. Gtkada.Canvas_View.Rect_Item_Record
    251. Gtkada.Canvas_View.Text_Item_Record
    252. Gtkada.Canvas_View.Views.Animator
    253. Gtkada.Canvas_View.Views.Minimap_View_Record
    254. Gtkada.MDI.MDI_Child_Record
    255. Gtkada.MDI.MDI_Window_Record
    256. Gtkada.Multi_Paned.Gtkada_Multi_Paned_Record
    257. Gtkada.Multiline_Entry.Gtkada_Multiline_Entry_Record
    258. Gtkada.Printing.Gtkada_Print_Operation_Record
    259. Gtkada.Style.Drawing_Style
    260. Pango.Attributes.Pango_Attr_List
    261. Pango.Context.Pango_Context_Record
    262. Pango.Coverage.Pango_Coverage_Record
    263. Pango.Font.Pango_Font_Record
    264. Pango.Font_Face.Pango_Font_Face_Record
    265. Pango.Font_Family.Pango_Font_Family_Record
    266. Pango.Font_Map.Pango_Font_Map_Record
    267. Pango.Font_Metrics.Pango_Font_Metrics
    268. Pango.Fontset.Pango_Fontset_Record
    269. Pango.Language.Pango_Language
    270. Pango.Layout.Pango_Layout_Iter
    271. Pango.Layout.Pango_Layout_Record
    272. Pango.Tabs.Pango_Tab_Array

Gdk.Event

Description

A Gdk.Event.Gdk_Event contains a union of all of the event types, and allows access to the data fields in a number of ways.

The event type is always the first field in all of the event types, and can always be accessed with the following code, no matter what type of event it is:

GdkEvent *event;
GdkEventType type;

type = event->type;

To access other fields of the event, the pointer to the event can be cast to the appropriate event type, or the union member name can be used. For example if the event type is Gdk.Event.Button_Press then the x coordinate of the button press can be accessed with:

GdkEvent *event;
gdouble x;

x = ((GdkEventButton*)event)->x;

or:

GdkEvent *event;
gdouble x;

x = event->button.x;

<group>Gdk, the low-level API</group>

All_Events_Mask

All_Events_Mask : constant Gdk_Event_Mask := 67108862;

Button1_Motion_Mask

Button1_Motion_Mask : constant Gdk_Event_Mask := 32;

Button2_Motion_Mask

Button2_Motion_Mask : constant Gdk_Event_Mask := 64;

Button3_Motion_Mask

Button3_Motion_Mask : constant Gdk_Event_Mask := 128;

Button_Middle

Button_Middle    : constant Gint := 2;

The primary button is typically the left mouse button, or the right button in a left-handed setup. The secondary button is the other one.

Button_Motion_Mask

Button_Motion_Mask : constant Gdk_Event_Mask := 16;

Button_Press_Mask

Button_Press_Mask : constant Gdk_Event_Mask := 256;

Button_Primary

Button_Primary   : constant Gint := 1;

The primary button is typically the left mouse button, or the right button in a left-handed setup. The secondary button is the other one.

Button_Release_Mask

Button_Release_Mask : constant Gdk_Event_Mask := 512;

Button_Secondary

Button_Secondary : constant Gint := 3;

The primary button is typically the left mouse button, or the right button in a left-handed setup. The secondary button is the other one.

Copy

function Copy (Event : Gdk_Event) return Gdk_Event

Copies a Gdk.Event.Gdk_Event, copying or incrementing the reference count of the resources associated with it (e.g. Gdk.Gdk_Window's and strings).

Parameters
Event
Return Value

a copy of Event. The returned Gdk.Event.Gdk_Event should be freed with Gdk.Event.Free.

Double_Button_Press

Double_Button_Press : constant Gdk_Event_Type := Gdk_2button_Press;

Enter_Notify_Mask

Enter_Notify_Mask : constant Gdk_Event_Mask := 4096;

Events_Pending

function Events_Pending return Boolean

Checks if any events are ready to be processed for any display.

Return Value

True if any events are pending.

Exposure_Mask

Exposure_Mask : constant Gdk_Event_Mask := 2;

Focus_Change_Mask

Focus_Change_Mask : constant Gdk_Event_Mask := 16384;

Free

procedure Free (Event : Gdk_Event)

Frees a Gdk.Event.Gdk_Event, freeing or decrementing any resources associated with it. Note that this function should only be called with events returned from functions such as Gdk.Event.Peek, Gdk.Event.Get, Gdk.Event.Copy and gdk_event_new.

Parameters
Event

From_Address

function From_Address (C : System.Address) return Gdk_Event

Convert a C handler to the matching Event structure.

Parameters
C
Return Value

From_Object_Free

function From_Object_Free (B : access Gdk_Event_Any) return Gdk_Event_Any

Contains the fields which are common to all event structs. Any event pointer can safely be cast to a pointer to a Gdk.Event.Gdk_Event_Any to access these fields.

Parameters
B
Return Value

From_Object_Free

function From_Object_Free (B : access Gdk_Event_Button) return Gdk_Event_Button

Used for button press and button release events. The Type field will be one of Gdk.Event.Button_Press, Gdk.Event.Gdk_2button_Press, Gdk.Event.Gdk_3button_Press or Gdk.Event.Button_Release,

Double and triple-clicks result in a sequence of events being received. For double-clicks the order of events will be:

Gdk.Event.Button_Press - Gdk.Event.Gdk_2button_Press - Gdk.Event.Button_Release

Note that the first click is received just like a normal button press, while the second click results in a Gdk.Event.Gdk_2button_Press being received just after the Gdk.Event.Button_Press.

Triple-clicks are very similar to double-clicks, except that Gdk.Event.Gdk_3button_Press is inserted after the third click. The order of the events is:

Gdk.Event.Button_Press - Gdk.Event.Gdk_2button_Press - Gdk.Event.Button_Release - Gdk.Event.Button_Press - Gdk.Event.Gdk_3button_Press - Gdk.Event.Button_Release

For a double click to occur, the second button press must occur within 1/4 of a second of the first. For a triple click to occur, the third button press must also occur within 1/2 second of the first button press.

Parameters
B
Return Value

From_Object_Free

function From_Object_Free (B : access Gdk_Event_Configure) return Gdk_Event_Configure

Generated when a window size or position has changed.

Parameters
B
Return Value

From_Object_Free

function From_Object_Free (B : access Gdk_Event_Crossing) return Gdk_Event_Crossing

Generated when the pointer enters or leaves a window.

Parameters
B
Return Value

From_Object_Free

function From_Object_Free (B : access Gdk_Event_DND) return Gdk_Event_DND

Generated during DND operations.

Parameters
B
Return Value

From_Object_Free

function From_Object_Free (B : access Gdk_Event_Expose) return Gdk_Event_Expose

Generated when all or part of a window becomes visible and needs to be redrawn.

Parameters
B
Return Value

From_Object_Free

function From_Object_Free (B : access Gdk_Event_Focus) return Gdk_Event_Focus

Describes a change of keyboard focus.

Parameters
B
Return Value

From_Object_Free

function From_Object_Free (B : access Gdk_Event_Grab_Broken) return Gdk_Event_Grab_Broken

Generated when a pointer or keyboard grab is broken. On X11, this happens when the grab window becomes unviewable (i.e. it or one of its ancestors is unmapped), or if the same application grabs the pointer or keyboard again. Note that implicit grabs (which are initiated by button presses) can also cause Gdk.Event.Gdk_Event_Grab_Broken events. Generated when a pointer or keyboard grab is broken. On X11, this happens when the grab window becomes unviewable (i.e. it or one of its ancestors is unmapped), or if the same application grabs the pointer or keyboard again. Note that implicit grabs (which are initiated by button presses) can also cause Gdk.Event.Gdk_Event_Grab_Broken events.

Parameters
B
Return Value

From_Object_Free

function From_Object_Free (B : access Gdk_Event_Key) return Gdk_Event_Key

Describes a key press or key release event.

Parameters
B
Return Value

From_Object_Free

function From_Object_Free (B : access Gdk_Event_Motion) return Gdk_Event_Motion

Generated when the pointer moves.

Parameters
B
Return Value

From_Object_Free

function From_Object_Free (B : access Gdk_Event_Owner_Change) return Gdk_Event_Owner_Change

Generated when the owner of a selection changes. On X11, this information is only available if the X server supports the XFIXES extension.

Parameters
B
Return Value

From_Object_Free

function From_Object_Free (B : access Gdk_Event_Pad_Axis) return Gdk_Event_Pad_Axis

Generated during GDK_SOURCE_TABLET_PAD interaction with tactile sensors.

Parameters
B
Return Value

From_Object_Free

function From_Object_Free (B : access Gdk_Event_Pad_Button) return Gdk_Event_Pad_Button

Generated during GDK_SOURCE_TABLET_PAD button presses and releases.

Parameters
B
Return Value

From_Object_Free

function From_Object_Free (B : access Gdk_Event_Pad_Group_Mode) return Gdk_Event_Pad_Group_Mode

Generated during GDK_SOURCE_TABLET_PAD mode switches in a group.

Parameters
B
Return Value

From_Object_Free

function From_Object_Free (B : access Gdk_Event_Property) return Gdk_Event_Property

Describes a property change on a window.

Parameters
B
Return Value

From_Object_Free

function From_Object_Free (B : access Gdk_Event_Proximity) return Gdk_Event_Proximity

Proximity events are generated when using GDK's wrapper for the XInput extension. The XInput extension is an add-on for standard X that allows you to use nonstandard devices such as graphics tablets. A proximity event indicates that the stylus has moved in or out of contact with the tablet, or perhaps that the user's finger has moved in or out of contact with a touch screen.

This event type will be used pretty rarely. It only is important for XInput aware programs that are drawing their own cursor.

Parameters
B
Return Value

From_Object_Free

function From_Object_Free (B : access Gdk_Event_Record) return Gdk_Event_Record

A Gdk.Event.Gdk_Event contains a union of all of the event types, and allows access to the data fields in a number of ways.

The event type is always the first field in all of the event types, and can always be accessed with the following code, no matter what type of event it is:

GdkEvent *event;
GdkEventType type;

type = event->type;

To access other fields of the event, the pointer to the event can be cast to the appropriate event type, or the union member name can be used. For example if the event type is Gdk.Event.Button_Press then the x coordinate of the button press can be accessed with:

GdkEvent *event;
gdouble x;

x = ((GdkEventButton*)event)->x;

or:

GdkEvent *event;
gdouble x;

x = event->button.x;
Parameters
B
Return Value

From_Object_Free

function From_Object_Free (B : access Gdk_Event_Scroll) return Gdk_Event_Scroll

Generated from button presses for the buttons 4 to 7. Wheel mice are usually configured to generate button press events for buttons 4 and 5 when the wheel is turned.

Some GDK backends can also generate "smooth" scroll events, which can be recognized by the Gdk.Event.Scroll_Smooth scroll direction. For these, the scroll deltas can be obtained with Gdk.Event.Get_Scroll_Deltas.

Parameters
B
Return Value

From_Object_Free

function From_Object_Free (B : access Gdk_Event_Selection) return Gdk_Event_Selection

Generated when a selection is requested or ownership of a selection is taken over by another client application.

Parameters
B
Return Value

From_Object_Free

function From_Object_Free (B : access Gdk_Event_Sequence) return Gdk_Event_Sequence
Parameters
B
Return Value

From_Object_Free

function From_Object_Free (B : access Gdk_Event_Setting) return Gdk_Event_Setting

Generated when a setting is modified.

Parameters
B
Return Value

From_Object_Free

function From_Object_Free (B : access Gdk_Event_Touch) return Gdk_Event_Touch

Used for touch events. Type field will be one of Gdk.Event.Touch_Begin, Gdk.Event.Touch_Update, Gdk.Event.Touch_End or Gdk.Event.Touch_Cancel.

Touch events are grouped into sequences by means of the Sequence field, which can also be obtained with Gdk.Event.Get_Event_Sequence. Each sequence begins with a Gdk.Event.Touch_Begin event, followed by any number of Gdk.Event.Touch_Update events, and ends with a Gdk.Event.Touch_End (or Gdk.Event.Touch_Cancel) event. With multitouch devices, there may be several active sequences at the same time.

Parameters
B
Return Value

From_Object_Free

function From_Object_Free (B : access Gdk_Event_Touchpad_Pinch) return Gdk_Event_Touchpad_Pinch

Generated during touchpad swipe gestures.

Parameters
B
Return Value

From_Object_Free

function From_Object_Free (B : access Gdk_Event_Touchpad_Swipe) return Gdk_Event_Touchpad_Swipe

Generated during touchpad swipe gestures.

Parameters
B
Return Value

From_Object_Free

function From_Object_Free (B : access Gdk_Event_Visibility) return Gdk_Event_Visibility

Generated when the window visibility status has changed.

Parameters
B
Return Value

From_Object_Free

function From_Object_Free (B : access Gdk_Event_Window_State) return Gdk_Event_Window_State

Generated when the state of a toplevel window changes.

Parameters
B
Return Value

Gdk_Crossing_Mode

type Gdk_Crossing_Mode is (
   Crossing_Normal,
   Crossing_Grab,
   Crossing_Ungrab,
   Crossing_Gtk_Grab,
   Crossing_Gtk_Ungrab,
   Crossing_State_Changed,
   Crossing_Touch_Begin,
   Crossing_Touch_End,
   Crossing_Device_Switch);

Specifies the crossing mode for Gdk.Event.Gdk_Event_Crossing.

Enumeration Literal
Crossing_Normal
Crossing_Grab
Crossing_Ungrab
Crossing_Gtk_Grab
Crossing_Gtk_Ungrab
Crossing_State_Changed
Crossing_Touch_Begin
Crossing_Touch_End
Crossing_Device_Switch

Gdk_Crossing_Mode_Properties

package Gdk_Crossing_Mode_Properties is
   new Generic_Internal_Discrete_Property (Gdk_Crossing_Mode);

Gdk_Event

type Gdk_Event is access all Gdk_Event_Record;

Gdk_Event_Any

type Gdk_Event_Any is record
   The_Type : Gdk_Event_Type;
   Window : Gdk.Gdk_Window;
   Send_Event : Gint8;
end record;
Record components
The_Type
Window
Send_Event

Gdk_Event_Button

type Gdk_Event_Button is record
   The_Type : Gdk_Event_Type;
   Window : Gdk.Gdk_Window;
   Send_Event : Gint8;
   Time : Guint32;
   X : Gdouble;
   Y : Gdouble;
   Axes : access Gdouble;
   State : Gdk.Types.Gdk_Modifier_Type;
   Button : Guint;
   Device : System.Address;
   X_Root : Gdouble;
   Y_Root : Gdouble;
end record;
Record components
The_Type
Window
Send_Event
Time
X
Y
Axes
State
Button
Device
X_Root
Y_Root

Gdk_Event_Configure

type Gdk_Event_Configure is record
   The_Type : Gdk_Event_Type;
   Window : Gdk.Gdk_Window;
   Send_Event : Gint8;
   X : Glib.Gint := 0;
   Y : Glib.Gint := 0;
   Width : Glib.Gint := 0;
   Height : Glib.Gint := 0;
end record;
Record components
The_Type
Window
Send_Event
X
Y
Width
Height

Gdk_Event_Crossing

type Gdk_Event_Crossing is record
   The_Type : Gdk_Event_Type;
   Window : Gdk.Gdk_Window;
   Send_Event : Gint8;
   Subwindow : Gdk.Gdk_Window;
   Time : Guint32;
   X : Gdouble;
   Y : Gdouble;
   X_Root : Gdouble;
   Y_Root : Gdouble;
   Mode : Gdk_Crossing_Mode;
   Detail : Gdk_Notify_Type;
   Focus : Boolean;
   State : Gdk.Types.Gdk_Modifier_Type;
end record;
Record components
The_Type
Window
Send_Event
Subwindow
Time
X
Y
X_Root
Y_Root
Mode
Detail
Focus
State

Gdk_Event_DND

type Gdk_Event_DND is record
   The_Type : Gdk_Event_Type;
   Window : Gdk.Gdk_Window;
   Send_Event : Gint8;
   Context : System.Address;
   Time : Guint32;
   X_Root : Gshort;
   Y_Root : Gshort;
end record;
Record components
The_Type
Window
Send_Event
Context
Time
X_Root
Y_Root

Gdk_Event_Expose

type Gdk_Event_Expose is record
   The_Type : Gdk_Event_Type;
   Window : Gdk.Gdk_Window;
   Send_Event : Gint8;
   Area : Gdk.Rectangle.Gdk_Rectangle;
   Region : Cairo.Region.Cairo_Region;
   Count : Glib.Gint := 0;
end record;
Record components
The_Type
Window
Send_Event
Area
Region
Count

Gdk_Event_Focus

type Gdk_Event_Focus is record
   The_Type : Gdk_Event_Type;
   Window : Gdk.Gdk_Window;
   Send_Event : Gint8;
   Gtk_In : Gint16;
end record;
Record components
The_Type
Window
Send_Event
Gtk_In

Gdk_Event_Func

type Gdk_Event_Func is access procedure (Event : Gdk_Event);

Specifies the type of function passed to Gdk.Event.Handler_Set to handle all GDK events.

Parameters
Event

the Gdk.Event.Gdk_Event to process.

Gdk_Event_Grab_Broken

type Gdk_Event_Grab_Broken is record
   The_Type : Gdk_Event_Type;
   Window : Gdk.Gdk_Window;
   Send_Event : Gint8;
   Keyboard : Boolean;
   Implicit : Boolean;
   Grab_Window : Gdk.Gdk_Window;
end record;
Record components
The_Type
Window
Send_Event
Keyboard
Implicit
Grab_Window

Gdk_Event_Key

type Gdk_Event_Key is record
   The_Type : Gdk_Event_Type;
   Window : Gdk.Gdk_Window;
   Send_Event : Gint8;
   Time : Guint32;
   State : Gdk.Types.Gdk_Modifier_Type;
   Keyval : Gdk.Types.Gdk_Key_Type;
   Length : Glib.Gint := 0;
   String : Gtkada.Types.Chars_Ptr;
   Hardware_Keycode : Guint16;
   Group : Guint8;
   Is_Modifier : Guint;
end record;
Record components
The_Type
Window
Send_Event
Time
State
Keyval
Length
String
Hardware_Keycode
Group
Is_Modifier

Gdk_Event_Mask

type Gdk_Event_Mask is mod 2 ** Integer'Size;

A set of bit-flags to indicate which events a window is to receive. Most of these masks map onto one or more of the Gdk.Event.Gdk_Event_Type event types above.

See the [input handling overview][chap-input-handling] for details of [event masks][event-masks] and [event propagation][event-propagation].

Gdk.Event.Pointer_Motion_Hint_Mask is deprecated. It is a special mask to reduce the number of Gdk.Event.Motion_Notify events received. When using Gdk.Event.Pointer_Motion_Hint_Mask, fewer Gdk.Event.Motion_Notify events will be sent, some of which are marked as a hint (the is_hint member is True). To receive more motion events after a motion hint event, the application needs to asks for more, by calling Gdk.Event.Request_Motions.

Since GTK 3.8, motion events are already compressed by default, independent of this mechanism. This compression can be disabled with Gdk.Window.Set_Event_Compression. See the documentation of that function for details.

If Gdk.Event.Touch_Mask is enabled, the window will receive touch events from touch-enabled devices. Those will come as sequences of Gdk.Event.Gdk_Event_Touch with type Gdk.Event.Touch_Update, enclosed by two events with type Gdk.Event.Touch_Begin and Gdk.Event.Touch_End (or Gdk.Event.Touch_Cancel). Gdk.Event.Get_Event_Sequence returns the event sequence for these events, so different sequences may be distinguished.

Gdk_Event_Mask_Properties

package Gdk_Event_Mask_Properties is
   new Generic_Internal_Discrete_Property (Gdk_Event_Mask);

Gdk_Event_Motion

type Gdk_Event_Motion is record
   The_Type : Gdk_Event_Type;
   Window : Gdk.Gdk_Window;
   Send_Event : Gint8;
   Time : Guint32;
   X : Gdouble;
   Y : Gdouble;
   Axes : access Gdouble;
   State : Gdk.Types.Gdk_Modifier_Type;
   Is_Hint : Gint16;
   Device : System.Address;
   X_Root : Gdouble;
   Y_Root : Gdouble;
end record;
Record components
The_Type
Window
Send_Event
Time
X
Y
Axes
State
Is_Hint
Device
X_Root
Y_Root

Gdk_Event_New

function Gdk_Event_New (The_Type : Gdk_Event_Type) return Gdk_Event

Creates a new event of the given type. All fields are set to 0. Since: gtk+ 2.2

Parameters
The_Type

a Gdk.Event.Gdk_Event_Type

Return Value

Gdk_Event_Owner_Change

type Gdk_Event_Owner_Change is record
   The_Type : Gdk_Event_Type;
   Window : Gdk.Gdk_Window;
   Send_Event : Gint8;
   Owner : Gdk.Gdk_Window;
   Reason : Gdk_Owner_Change;
   Selection : Gdk.Types.Gdk_Atom;
   Time : Guint32;
   Selection_Time : Guint32;
end record;
Record components
The_Type
Window
Send_Event
Owner
Reason
Selection
Time
Selection_Time

Gdk_Event_Pad_Axis

type Gdk_Event_Pad_Axis is record
   The_Type : Gdk_Event_Type;
   Window : Gdk.Gdk_Window;
   Send_Event : Gint8;
   Time : Guint32;
   Group : Guint;
   Index : Guint;
   Mode : Guint;
   Value : Gdouble;
end record;
Record components
The_Type
Window
Send_Event
Time
Group
Index
Mode
Value

Gdk_Event_Pad_Button

type Gdk_Event_Pad_Button is record
   The_Type : Gdk_Event_Type;
   Window : Gdk.Gdk_Window;
   Send_Event : Gint8;
   Time : Guint32;
   Group : Guint;
   Button : Guint;
   Mode : Guint;
end record;
Record components
The_Type
Window
Send_Event
Time
Group
Button
Mode

Gdk_Event_Pad_Group_Mode

type Gdk_Event_Pad_Group_Mode is record
   The_Type : Gdk_Event_Type;
   Window : Gdk.Gdk_Window;
   Send_Event : Gint8;
   Time : Guint32;
   Group : Guint;
   Mode : Guint;
end record;
Record components
The_Type
Window
Send_Event
Time
Group
Mode

Gdk_Event_Property

type Gdk_Event_Property is record
   The_Type : Gdk_Event_Type;
   Window : Gdk.Gdk_Window;
   Send_Event : Gint8;
   Atom : Gdk.Types.Gdk_Atom;
   Time : Guint32;
   State : Gdk_Property_State;
end record;
Record components
The_Type
Window
Send_Event
Atom
Time
State

Gdk_Event_Proximity

type Gdk_Event_Proximity is record
   The_Type : Gdk_Event_Type;
   Window : Gdk.Gdk_Window;
   Send_Event : Gint8;
   Time : Guint32;
   Device : System.Address;
end record;
Record components
The_Type
Window
Send_Event
Time
Device

Gdk_Event_Record

type Gdk_Event_Record (The_Type : Gdk_Event_Type := Gdk.Event.Nothing) is record
   case The_Type is
      when Gdk.Event.Nothing
      | Gdk.Event.Delete
      | Gdk.Event.Destroy
      | Gdk.Event.Map
      | Gdk.Event.Unmap
      | Gdk.Event.Client_Event =>
      Any : Gdk_Event_Any;
      when Gdk.Event.Expose
      | Gdk.Event.Damage =>
      Expose : Gdk_Event_Expose;
      when Gdk.Event.Visibility_Notify =>
      Visibility : Gdk_Event_Visibility;
      when Gdk.Event.Motion_Notify =>
      Motion : Gdk_Event_Motion;
      when Gdk.Event.Button_Press
      | Gdk.Event.Gdk_2button_Press
      | Gdk.Event.Gdk_3button_Press
      | Gdk.Event.Button_Release =>
      Button : Gdk_Event_Button;
      when Gdk.Event.Touch_Begin
      | Gdk.Event.Touch_Update
      | Gdk.Event.Touch_End
      | Gdk.Event.Touch_Cancel =>
      Touch : Gdk_Event_Touch;
      when Gdk.Event.Scroll =>
      Scroll : Gdk_Event_Scroll;
      when Gdk.Event.Key_Press
      | Gdk.Event.Key_Release =>
      Key : Gdk_Event_Key;
      when Gdk.Event.Enter_Notify
      | Gdk.Event.Leave_Notify =>
      Crossing : Gdk_Event_Crossing;
      when Gdk.Event.Focus_Change =>
      Focus_Change : Gdk_Event_Focus;
      when Gdk.Event.Configure =>
      Configure : Gdk_Event_Configure;
      when Gdk.Event.Property_Notify =>
      Property : Gdk_Event_Property;
      when Gdk.Event.Selection_Clear
      | Gdk.Event.Selection_Request
      | Gdk.Event.Selection_Notify =>
      Selection : Gdk_Event_Selection;
      when Gdk.Event.Owner_Change =>
      Owner_Change : Gdk_Event_Owner_Change;
      when Gdk.Event.Proximity_In
      | Gdk.Event.Proximity_Out =>
      Proximity : Gdk_Event_Proximity;
      when Gdk.Event.Drag_Enter
      | Gdk.Event.Drag_Leave
      | Gdk.Event.Drag_Motion
      | Gdk.Event.Drag_Status
      | Gdk.Event.Drop_Start
      | Gdk.Event.Drop_Finished =>
      Dnd : Gdk_Event_DND;
      when Gdk.Event.Window_State =>
      Window_State : Gdk_Event_Window_State;
      when Gdk.Event.Setting =>
      Setting : Gdk_Event_Setting;
      when Gdk.Event.Grab_Broken =>
      Grab_Broken : Gdk_Event_Grab_Broken;
      when Gdk.Event.Touchpad_Swipe =>
      Touchpad_Swipe : Gdk_Event_Touchpad_Swipe;
      when Gdk.Event.Touchpad_Pinch =>
      Touchpad_Pinch : Gdk_Event_Touchpad_Pinch;
      when Gdk.Event.Pad_Button_Press
      | Gdk.Event.Pad_Button_Release =>
      Pad_Button : Gdk_Event_Pad_Button;
      when Gdk.Event.Pad_Ring
      | Gdk.Event.Pad_Strip =>
      Pad_Axis : Gdk_Event_Pad_Axis;
      when Gdk.Event.Pad_Group_Mode =>
      Pad_Group_Mode : Gdk_Event_Pad_Group_Mode;
   end case;
end record;
Record discriminants
The_Type
Record components
Any
Expose
Visibility
Motion
Button
Touch
Scroll
Key
Crossing
Focus_Change
Configure
Property
Selection
Owner_Change
Proximity
Dnd
Window_State
Setting
Grab_Broken
Touchpad_Swipe
Touchpad_Pinch
Pad_Button
Pad_Axis
Pad_Group_Mode

Gdk_Event_Scroll

type Gdk_Event_Scroll is record
   The_Type : Gdk_Event_Type;
   Window : Gdk.Gdk_Window;
   Send_Event : Gint8;
   Time : Guint32;
   X : Gdouble;
   Y : Gdouble;
   State : Gdk.Types.Gdk_Modifier_Type;
   Direction : Gdk_Scroll_Direction;
   Device : System.Address;
   X_Root : Gdouble;
   Y_Root : Gdouble;
   Delta_X : Gdouble;
   Delta_Y : Gdouble;
   Is_Stop : Guint;
end record;
Record components
The_Type
Window
Send_Event
Time
X
Y
State
Direction
Device
X_Root
Y_Root
Delta_X
Delta_Y
Is_Stop

Gdk_Event_Selection

type Gdk_Event_Selection is record
   The_Type : Gdk_Event_Type;
   Window : Gdk.Gdk_Window;
   Send_Event : Gint8;
   Selection : Gdk.Types.Gdk_Atom;
   Target : Gdk.Types.Gdk_Atom;
   Property : Gdk.Types.Gdk_Atom;
   Time : Guint32;
   Requestor : Gdk.Gdk_Window;
end record;
Record components
The_Type
Window
Send_Event
Selection
Target
Property
Time
Requestor

Gdk_Event_Sequence

type Gdk_Event_Sequence is new Glib.C_Proxy;

Gdk_Event_Setting

type Gdk_Event_Setting is record
   The_Type : Gdk_Event_Type;
   Window : Gdk.Gdk_Window;
   Send_Event : Gint8;
   Action : Gdk_Setting_Action;
   Name : Gtkada.Types.Chars_Ptr;
end record;
Record components
The_Type
Window
Send_Event
Action
Name

Gdk_Event_Touch

type Gdk_Event_Touch is record
   The_Type : Gdk_Event_Type;
   Window : Gdk.Gdk_Window;
   Send_Event : Gint8;
   Time : Guint32;
   X : Gdouble;
   Y : Gdouble;
   Axes : access Gdouble;
   State : Gdk.Types.Gdk_Modifier_Type;
   Sequence : Gdk_Event_Sequence;
   Emulating_Pointer : Boolean;
   Device : System.Address;
   X_Root : Gdouble;
   Y_Root : Gdouble;
end record;
Record components
The_Type
Window
Send_Event
Time
X
Y
Axes
State
Sequence
Emulating_Pointer
Device
X_Root
Y_Root

Gdk_Event_Touchpad_Pinch

type Gdk_Event_Touchpad_Pinch is record
   The_Type : Gdk_Event_Type;
   Window : Gdk.Gdk_Window;
   Send_Event : Gint8;
   Phase : Gint8;
   N_Fingers : Gint8;
   Time : Guint32;
   X : Gdouble;
   Y : Gdouble;
   Dx : Gdouble;
   Dy : Gdouble;
   Angle_Delta : Gdouble;
   Scale : Gdouble;
   X_Root : Gdouble;
   Y_Root : Gdouble;
   State : Gdk.Types.Gdk_Modifier_Type;
end record;
Record components
The_Type
Window
Send_Event
Phase
N_Fingers
Time
X
Y
Dx
Dy
Angle_Delta
Scale
X_Root
Y_Root
State

Gdk_Event_Touchpad_Swipe

type Gdk_Event_Touchpad_Swipe is record
   The_Type : Gdk_Event_Type;
   Window : Gdk.Gdk_Window;
   Send_Event : Gint8;
   Phase : Gint8;
   N_Fingers : Gint8;
   Time : Guint32;
   X : Gdouble;
   Y : Gdouble;
   Dx : Gdouble;
   Dy : Gdouble;
   X_Root : Gdouble;
   Y_Root : Gdouble;
   State : Gdk.Types.Gdk_Modifier_Type;
end record;
Record components
The_Type
Window
Send_Event
Phase
N_Fingers
Time
X
Y
Dx
Dy
X_Root
Y_Root
State

Gdk_Event_Type

type Gdk_Event_Type is (
   Nothing,
   Delete,
   Destroy,
   Expose,
   Motion_Notify,
   Button_Press,
   Gdk_2button_Press,
   Gdk_3button_Press,
   …,
   Pad_Group_Mode);

Specifies the type of the event.

Do not confuse these events with the signals that GTK+ widgets emit. Although many of these events result in corresponding signals being emitted, the events are often transformed or filtered along the way.

In some language bindings, the values Gdk.Event.Gdk_2button_Press and Gdk.Event.Gdk_3button_Press would translate into something syntactically invalid (eg Gdk.EventType.2ButtonPress, where a symbol is not allowed to start with a number). In that case, the aliases GDK_DOUBLE_BUTTON_PRESS and GDK_TRIPLE_BUTTON_PRESS can be used instead.

Enumeration Literal
Nothing
Delete
Destroy
Expose
Motion_Notify
Button_Press
Gdk_2button_Press
Gdk_3button_Press
Button_Release
Key_Press
Key_Release
Enter_Notify
Leave_Notify
Focus_Change
Configure
Map
Unmap
Property_Notify
Selection_Clear
Selection_Request
Selection_Notify
Proximity_In
Proximity_Out
Drag_Enter
Drag_Leave
Drag_Motion
Drag_Status
Drop_Start
Drop_Finished
Client_Event
Visibility_Notify
Scroll
Window_State
Setting
Owner_Change
Grab_Broken
Damage
Touch_Begin
Touch_Update
Touch_End
Touch_Cancel
Touchpad_Swipe
Touchpad_Pinch
Pad_Button_Press
Pad_Button_Release
Pad_Ring
Pad_Strip
Pad_Group_Mode

Gdk_Event_Type_Properties

package Gdk_Event_Type_Properties is
   new Generic_Internal_Discrete_Property (Gdk_Event_Type);

Gdk_Event_Visibility

type Gdk_Event_Visibility is record
   The_Type : Gdk_Event_Type;
   Window : Gdk.Gdk_Window;
   Send_Event : Gint8;
   State : Gdk_Visibility_State;
end record;
Record components
The_Type
Window
Send_Event
State

Gdk_Event_Window_State

type Gdk_Event_Window_State is record
   The_Type : Gdk_Event_Type;
   Window : Gdk.Gdk_Window;
   Send_Event : Gint8;
   Changed_Mask : Gdk_Window_State;
   New_Window_State : Gdk_Window_State;
end record;
Record components
The_Type
Window
Send_Event
Changed_Mask
New_Window_State

Gdk_New

procedure Gdk_New (Event : out Gdk_Event; The_Type : Gdk_Event_Type)

Creates a new event of the given type. All fields are set to 0. Since: gtk+ 2.2

Parameters
Event
The_Type

a Gdk.Event.Gdk_Event_Type

Gdk_Notify_Type

type Gdk_Notify_Type is (
   Notify_Ancestor,
   Notify_Virtual,
   Notify_Inferior,
   Notify_Nonlinear,
   Notify_Nonlinear_Virtual,
   Notify_Unknown);

Specifies the kind of crossing for Gdk.Event.Gdk_Event_Crossing.

See the X11 protocol specification of LeaveNotify for full details of crossing event generation.

Enumeration Literal
Notify_Ancestor
Notify_Virtual
Notify_Inferior
Notify_Nonlinear
Notify_Nonlinear_Virtual
Notify_Unknown

Gdk_Notify_Type_Properties

package Gdk_Notify_Type_Properties is
   new Generic_Internal_Discrete_Property (Gdk_Notify_Type);

Gdk_Owner_Change

type Gdk_Owner_Change is (
   Owner_Change_New_Owner,
   Owner_Change_Destroy,
   Owner_Change_Close);

Specifies why a selection ownership was changed.

Enumeration Literal
Owner_Change_New_Owner
Owner_Change_Destroy
Owner_Change_Close

Gdk_Owner_Change_Properties

package Gdk_Owner_Change_Properties is
   new Generic_Internal_Discrete_Property (Gdk_Owner_Change);

Gdk_Property_State

type Gdk_Property_State is (
   Property_New_Value,
   Property_Delete);

Specifies the type of a property change for a Gdk.Event.Gdk_Event_Property.

Enumeration Literal
Property_New_Value
Property_Delete

Gdk_Property_State_Properties

package Gdk_Property_State_Properties is
   new Generic_Internal_Discrete_Property (Gdk_Property_State);

Gdk_Scroll_Direction

type Gdk_Scroll_Direction is (
   Scroll_Up,
   Scroll_Down,
   Scroll_Left,
   Scroll_Right,
   Scroll_Smooth);

Specifies the direction for Gdk.Event.Gdk_Event_Scroll.

Enumeration Literal
Scroll_Up
Scroll_Down
Scroll_Left
Scroll_Right
Scroll_Smooth

Gdk_Scroll_Direction_Properties

package Gdk_Scroll_Direction_Properties is
   new Generic_Internal_Discrete_Property (Gdk_Scroll_Direction);

Gdk_Setting_Action

type Gdk_Setting_Action is (
   Setting_Action_New,
   Setting_Action_Changed,
   Setting_Action_Deleted);

Specifies the kind of modification applied to a setting in a Gdk.Event.Gdk_Event_Setting.

Enumeration Literal
Setting_Action_New
Setting_Action_Changed
Setting_Action_Deleted

Gdk_Setting_Action_Properties

package Gdk_Setting_Action_Properties is
   new Generic_Internal_Discrete_Property (Gdk_Setting_Action);

Gdk_Visibility_State

type Gdk_Visibility_State is (
   Visibility_Unobscured,
   Visibility_Partial,
   Visibility_Fully_Obscured);

Specifies the visiblity status of a window for a Gdk.Event.Gdk_Event_Visibility.

Enumeration Literal
Visibility_Unobscured
Visibility_Partial
Visibility_Fully_Obscured

Gdk_Visibility_State_Properties

package Gdk_Visibility_State_Properties is
   new Generic_Internal_Discrete_Property (Gdk_Visibility_State);

Gdk_Window_State

type Gdk_Window_State is mod 2 ** Integer'Size;

Specifies the state of a toplevel window.

Gdk_Window_State_Properties

package Gdk_Window_State_Properties is
   new Generic_Internal_Discrete_Property (Gdk_Window_State);

Get

function Get return Gdk_Event

Checks all open displays for a Gdk.Event.Gdk_Event to process,to be processed on, fetching events from the windowing system if necessary. See Gdk.Display.Get_Event.

Return Value

the next Gdk.Event.Gdk_Event to be processed, or null if no events are pending. The returned Gdk.Event.Gdk_Event should be freed with Gdk.Event.Free.

Get_Angle

function Get_Angle
   (Event  : Gdk_Event;
    Event2 : Gdk_Event;
    Angle  : access Gdouble) return Boolean

If both events contain X/Y information, this function will return True and return in Angle the relative angle from Event1 to Event2. The rotation direction for positive angles is from the positive X axis towards the positive Y axis. Since: gtk+ 3.0

Parameters
Event
Event2

second Gdk.Event.Gdk_Event

Angle

return location for the relative angle between both events

Return Value

True if the angle could be calculated.

Get_Axis

procedure Get_Axis
   (Event    : Gdk_Event;
    Axis_Use : Gdk_Axis_Use;
    Value    : out Gdouble)

Extract the axis value for a particular axis use from an event structure.

Parameters
Event
Axis_Use

the axis use to look for

Value

location to store the value found

Get_Button

function Get_Button (Event : Gdk_Event) return Guint

Extract the button number from an event

Parameters
Event
Return Value

Get_Center

function Get_Center
   (Event  : Gdk_Event;
    Event2 : Gdk_Event;
    X      : access Gdouble;
    Y      : access Gdouble) return Boolean

If both events contain X/Y information, the center of both coordinates will be returned in X and Y. Since: gtk+ 3.0

Parameters
Event
Event2

second Gdk.Event.Gdk_Event

X

return location for the X coordinate of the center

Y

return location for the Y coordinate of the center

Return Value

True if the center could be calculated.

Get_Coords

procedure Get_Coords
   (Event : Gdk_Event;
    X_Win : out Gdouble;
    Y_Win : out Gdouble)

Extract the event window relative x/y coordinates from an event.

Parameters
Event
X_Win

location to put event window x coordinate

Y_Win

location to put event window y coordinate

Get_Device_Tool

function Get_Device_Tool
   (Event : Gdk_Event) return Gdk.Device_Tool.Gdk_Device_Tool

If the event was generated by a device that supports different tools (eg. a tablet), this function will return a Gdk.Device_Tool.Gdk_Device_Tool representing the tool that caused the event. Otherwise, null will be returned. Note: the Gdk.Device_Tool.Gdk_Device_Tool<!-- -->s will be constant during the application lifetime, if settings must be stored persistently across runs, see Gdk.Device_Tool.Get_Serial Since: gtk+ 3.22

Parameters
Event
Return Value

The current device tool, or null

Get_Distance

function Get_Distance
   (Event    : Gdk_Event;
    Event2   : Gdk_Event;
    Distance : access Gdouble) return Boolean

If both events have X/Y information, the distance between both coordinates (as in a straight line going from Event1 to Event2) will be returned. Since: gtk+ 3.0

Parameters
Event
Event2

second Gdk.Event.Gdk_Event

Distance

return location for the distance

Return Value

True if the distance could be calculated.

Get_Event

function Get_Event (Value : Glib.Values.GValue) return Gdk_Event

Convert a value into a Gdk_Event.

Parameters
Value
Return Value

Get_Event_Sequence

function Get_Event_Sequence (Event : Gdk_Event) return Gdk_Event_Sequence

If Event if of type Gdk.Event.Touch_Begin, Gdk.Event.Touch_Update, Gdk.Event.Touch_End or Gdk.Event.Touch_Cancel, returns the Gdk.Event.Gdk_Event_Sequence to which the event belongs. Otherwise, return null. Since: gtk+ 3.4

Parameters
Event
Return Value

the event sequence that the event belongs to

Get_Event_Type

function Get_Event_Type (Event : Gdk_Event) return Gdk_Event_Type

Retrieves the type of the event. Since: gtk+ 3.10

Parameters
Event
Return Value

a Gdk.Event.Gdk_Event_Type

Get_Key_Val

function Get_Key_Val (Event : Gdk_Event) return Gdk.Types.Gdk_Key_Type

Code of the key that was pressed (and that generated the event)

Parameters
Event
Return Value

Get_Keycode

function Get_Keycode (Event : Gdk_Event) return Guint

Hardware key code of the key that was pressed

Parameters
Event
Return Value

Get_Pointer_Emulated

function Get_Pointer_Emulated (Event : Gdk_Event) return Boolean

event: a Gdk.Event.Gdk_Event Returns whether this event is an 'emulated' pointer event (typically from a touch event), as opposed to a real one. Since: gtk+ 3.22

Parameters
Event
Return Value

True if this event is emulated

Get_Root_Coords

procedure Get_Root_Coords
   (Event  : Gdk_Event;
    X_Root : out Gdouble;
    Y_Root : out Gdouble)

Extract the root window relative x/y coordinates from an event.

Parameters
Event
X_Root

location to put root window x coordinate

Y_Root

location to put root window y coordinate

Get_Scancode

function Get_Scancode (Event : Gdk_Event) return Glib.Gint

Gets the keyboard low-level scancode of a key event. This is usually hardware_keycode. On Windows this is the high word of WM_KEY{DOWN,UP} lParam which contains the scancode and some extended flags. Since: gtk+ 3.22

Parameters
Event
Return Value

The associated keyboard scancode or 0

Get_Scroll_Deltas

procedure Get_Scroll_Deltas
   (Event   : Gdk_Event;
    Delta_X : out Gdouble;
    Delta_Y : out Gdouble)

Retrieves the scroll deltas from a Gdk.Event.Gdk_Event See also: Gdk.Event.Get_Scroll_Direction Since: gtk+ 3.4

Parameters
Event
Delta_X

return location for X delta

Delta_Y

return location for Y delta

Get_Scroll_Direction

procedure Get_Scroll_Direction
   (Event     : Gdk_Event;
    Direction : out Gdk_Scroll_Direction)

Extracts the scroll direction from an event. If Event is not of type Gdk.Event.Scroll, the contents of Direction are undefined. If you wish to handle both discrete and smooth scrolling, you should check the return value of this function, or of Gdk.Event.Get_Scroll_Deltas; for instance:

GdkScrollDirection direction;
double vscroll_factor = 0.0;
double x_scroll, y_scroll;

if (gdk_event_get_scroll_direction (event, &direction))
  {
    // Handle discrete scrolling with a known constant delta;
    const double delta = 12.0;

    switch (direction)
      {
      case GDK_SCROLL_UP:
        vscroll_factor = -delta;
        break;
      case GDK_SCROLL_DOWN:
        vscroll_factor = delta;
        break;
      default:
        // no scrolling
        break;
      }
  }
else if (gdk_event_get_scroll_deltas (event, &x_scroll, &y_scroll))
  {
    // Handle smooth scrolling directly
    vscroll_factor = y_scroll;
  }

Since: gtk+ 3.2

Parameters
Event
Direction

location to store the scroll direction

Get_Seat

function Get_Seat (Event : Gdk_Event) return Glib.Object.GObject

Returns the Gdk.Seat.Gdk_Seat this event was generated for. Since: gtk+ 3.20

Parameters
Event
Return Value

Get_Show_Events

function Get_Show_Events return Boolean

Gets whether event debugging output is enabled.

Return Value

True if event debugging output is enabled.

Get_State

function Get_State (Event : Gdk_Event) return Gdk.Types.Gdk_Modifier_Type

State of the mouse buttons and keyboard keys just prior to the event

Parameters
Event
Return Value

Get_Time

function Get_Time (Event : Gdk_Event) return Guint32

Returns the time stamp from Event, if there is one; otherwise returns GDK_CURRENT_TIME. If Event is null, returns GDK_CURRENT_TIME.

Parameters
Event
Return Value

time stamp field from Event

Get_Type

function Get_Type return Glib.GType
Return Value

Get_Window

function Get_Window (Event : Gdk_Event) return Gdk.Gdk_Window

Extracts the Gdk.Gdk_Window associated with an event. Since: gtk+ 3.10

Parameters
Event
Return Value

The Gdk.Gdk_Window associated with the event

Handler_Set

procedure Handler_Set (Func : Gdk_Event_Func)

Sets the function to call to handle all events from GDK. Note that GTK+ uses this to install its own event handler, so it is usually not useful for GTK+ applications. (Although an application can call this function then call Gtk.Main.Main_Do_Event to pass events to GTK+.)

Parameters
Func

the function to call to handle events from GDK.

Invalid_Gdouble_Value

Invalid_Gdouble_Value : constant Gdouble := Gdouble'Last - 1.0;

Invalid_Gint_Value

Invalid_Gint_Value    : constant Gint    := Gint'Last - 1;

Invalid_Guint32_Value

Invalid_Guint32_Value : constant Guint32 := Guint32'Last - 1;

Invalid_Guint_Value

Invalid_Guint_Value   : constant Guint   := Guint'Last - 1;

Invalid_Gulong_Value

Invalid_Gulong_Value  : constant Gulong  := Gulong'Last - 1;

Is_Scroll_Stop_Event

function Is_Scroll_Stop_Event (Event : Gdk_Event) return Boolean

Check whether a scroll event is a stop scroll event. Scroll sequences with smooth scroll information may provide a stop scroll event once the interaction with the device finishes, e.g. by lifting a finger. This stop scroll event is the signal that a widget may trigger kinetic scrolling based on the current velocity. Stop scroll events always have a a delta of 0/0. Since: gtk+ 3.20

Parameters
Event
Return Value

True if the event is a scroll stop event

Key_Press_Mask

Key_Press_Mask : constant Gdk_Event_Mask := 1024;

Key_Release_Mask

Key_Release_Mask : constant Gdk_Event_Mask := 2048;

Leave_Notify_Mask

Leave_Notify_Mask : constant Gdk_Event_Mask := 8192;

Peek

function Peek return Gdk_Event

If there is an event waiting in the event queue of some open display, returns a copy of it. See Gdk.Display.Peek_Event.

Return Value

a copy of the first Gdk.Event.Gdk_Event on some event queue, or null if no events are in any queues. The returned Gdk.Event.Gdk_Event should be freed with Gdk.Event.Free.

Pointer_Motion_Hint_Mask

Pointer_Motion_Hint_Mask : constant Gdk_Event_Mask := 8;

Pointer_Motion_Mask

Pointer_Motion_Mask : constant Gdk_Event_Mask := 4;

Property_Change_Mask

Property_Change_Mask : constant Gdk_Event_Mask := 65536;

Property_Gdk_Crossing_Mode

type Property_Gdk_Crossing_Mode is new Gdk_Crossing_Mode_Properties.Property;

Property_Gdk_Event_Mask

type Property_Gdk_Event_Mask is new Gdk_Event_Mask_Properties.Property;

Property_Gdk_Event_Type

type Property_Gdk_Event_Type is new Gdk_Event_Type_Properties.Property;

Property_Gdk_Notify_Type

type Property_Gdk_Notify_Type is new Gdk_Notify_Type_Properties.Property;

Property_Gdk_Owner_Change

type Property_Gdk_Owner_Change is new Gdk_Owner_Change_Properties.Property;

Property_Gdk_Property_State

type Property_Gdk_Property_State is new Gdk_Property_State_Properties.Property;

Property_Gdk_Scroll_Direction

type Property_Gdk_Scroll_Direction is new Gdk_Scroll_Direction_Properties.Property;

Property_Gdk_Setting_Action

type Property_Gdk_Setting_Action is new Gdk_Setting_Action_Properties.Property;

Property_Gdk_Visibility_State

type Property_Gdk_Visibility_State is new Gdk_Visibility_State_Properties.Property;

Property_Gdk_Window_State

type Property_Gdk_Window_State is new Gdk_Window_State_Properties.Property;

Proximity_In_Mask

Proximity_In_Mask : constant Gdk_Event_Mask := 262144;

Proximity_Out_Mask

Proximity_Out_Mask : constant Gdk_Event_Mask := 524288;

Put

procedure Put (Event : Gdk_Event)

Appends a copy of the given event onto the front of the event queue for event->any.window's display, or the default event queue if event->any.window is null. See Gdk.Display.Put_Event.

Parameters
Event

Request_Motions

procedure Request_Motions (Event : Gdk_Event_Motion)

Request more motion notifies if Event is a motion notify hint event. This function should be used instead of Gdk.Window.Get_Pointer to request further motion notifies, because it also works for extension events where motion notifies are provided for devices other than the core pointer. Coordinate extraction, processing and requesting more motion events from a Gdk.Event.Motion_Notify event usually works like this:

{
  // motion_event handler
  x = motion_event->x;
  y = motion_event->y;
  // handle (x,y) motion
  gdk_event_request_motions (motion_event); // handles is_hint events
}

Since: gtk+ 2.12

Parameters
Event

a valid Gdk.Event.Gdk_Event

Scroll_Mask

Scroll_Mask : constant Gdk_Event_Mask := 2097152;

Set_Device_Tool

procedure Set_Device_Tool
   (Event : Gdk_Event;
    Tool  : access Gdk.Device_Tool.Gdk_Device_Tool_Record'Class)

Sets the device tool for this event, should be rarely used. Since: gtk+ 3.22

Parameters
Event
Tool

tool to set on the event, or null

Set_Show_Events

procedure Set_Show_Events (Show_Events : Boolean)

Sets whether a trace of received events is output. Note that GTK+ must be compiled with debugging (that is, configured using the --enable-debug option) to use this option.

Parameters
Show_Events

True to output event debugging information.

Smooth_Scroll_Mask

Smooth_Scroll_Mask : constant Gdk_Event_Mask := 8388608;

Structure_Mask

Structure_Mask : constant Gdk_Event_Mask := 32768;

Substructure_Mask

Substructure_Mask : constant Gdk_Event_Mask := 1048576;

Tablet_Pad_Mask

Tablet_Pad_Mask : constant Gdk_Event_Mask := 33554432;

To_Address

function To_Address (C : Gdk_Event) return System.Address

Convert an event to the underlying C handler.

Parameters
C
Return Value

To_Event

function To_Event (Event : access Gdk_Event_Button) return Gdk_Event

Cast Event into a Gdk_Event, which can be used to call some of subprograms in the API. The return value is a pointer to Event, which should therefore remain valid as long as the pointer is in use.

Parameters
Event
Return Value

To_Event

function To_Event (Event : access Gdk_Event_Key) return Gdk_Event

Cast Event into a Gdk_Event, which can be used to call some of subprograms in the API. The return value is a pointer to Event, which should therefore remain valid as long as the pointer is in use.

Parameters
Event
Return Value

Touch_Mask

Touch_Mask : constant Gdk_Event_Mask := 4194304;

Touchpad_Gesture_Mask

Touchpad_Gesture_Mask : constant Gdk_Event_Mask := 16777216;

Triggers_Context_Menu

function Triggers_Context_Menu (Event : Gdk_Event) return Boolean

This function returns whether a Gdk.Event.Gdk_Event_Button should trigger a context menu, according to platform conventions. The right mouse button always triggers context menus. Additionally, if gdk_keymap_get_modifier_mask returns a non-0 mask for GDK_MODIFIER_INTENT_CONTEXT_MENU, then the left mouse button will also trigger a context menu if this modifier is pressed. This function should always be used instead of simply checking for event->button == GDK_BUTTON_SECONDARY. Since: gtk+ 3.4

Parameters
Event
Return Value

True if the event should trigger a context menu.

Triple_Button_Press

Triple_Button_Press : constant Gdk_Event_Type := Gdk_3button_Press;

Visibility_Notify_Mask

Visibility_Notify_Mask : constant Gdk_Event_Mask := 131072;

Window_State_Above

Window_State_Above : constant Gdk_Window_State := 32;

Window_State_Below

Window_State_Below : constant Gdk_Window_State := 64;

Window_State_Bottom_Resizable

Window_State_Bottom_Resizable : constant Gdk_Window_State := 16384;

Window_State_Bottom_Tiled

Window_State_Bottom_Tiled : constant Gdk_Window_State := 8192;

Window_State_Focused

Window_State_Focused : constant Gdk_Window_State := 128;

Window_State_Fullscreen

Window_State_Fullscreen : constant Gdk_Window_State := 16;

Window_State_Iconified

Window_State_Iconified : constant Gdk_Window_State := 2;

Window_State_Left_Resizable

Window_State_Left_Resizable : constant Gdk_Window_State := 65536;

Window_State_Left_Tiled

Window_State_Left_Tiled : constant Gdk_Window_State := 32768;

Window_State_Maximized

Window_State_Maximized : constant Gdk_Window_State := 4;

Window_State_Right_Resizable

Window_State_Right_Resizable : constant Gdk_Window_State := 4096;

Window_State_Right_Tiled

Window_State_Right_Tiled : constant Gdk_Window_State := 2048;

Window_State_Sticky

Window_State_Sticky : constant Gdk_Window_State := 8;

Window_State_Tiled

Window_State_Tiled : constant Gdk_Window_State := 256;

Window_State_Top_Resizable

Window_State_Top_Resizable : constant Gdk_Window_State := 1024;

Window_State_Top_Tiled

Window_State_Top_Tiled : constant Gdk_Window_State := 512;

Window_State_Withdrawn

Window_State_Withdrawn : constant Gdk_Window_State := 1;

Simple Types

Record Types

Access Types

Constants

Subprograms

Generic Instantiations