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

Gtk.Window

Description

A GtkWindow is a toplevel window which can contain other widgets. Windows normally have decorations that are under the control of the windowing system and allow the user to manipulate the window (resize it, move it, close it,...).

# GtkWindow as GtkBuildable

The GtkWindow implementation of the Gtk.Buildable.Gtk_Buildable interface supports a custom <accel-groups> element, which supports any number of <group> elements representing the Gtk.Accel_Group.Gtk_Accel_Group objects you want to add to your window (synonymous with Gtk.Window.Add_Accel_Group.

It also supports the <initial-focus> element, whose name property names the widget to receive the focus when the window is mapped.

An example of a UI definition fragment with accel groups:

<object class="GtkWindow">
  <accel-groups>
    <group name="accelgroup1"/>
  </accel-groups>
  <initial-focus name="thunderclap"/>
</object>

...

<object class="GtkAccelGroup" id="accelgroup1"/>

The GtkWindow implementation of the Gtk.Buildable.Gtk_Buildable interface supports setting a child as the titlebar by specifying "titlebar" as the "type" attribute of a <child> element.

# CSS nodes

window.background
├── decoration
├── <titlebar child>.titlebar [.default-decoration]
╰── <child>

GtkWindow has a main CSS node with name window and style class .background, and a subnode with name decoration.

Style classes that are typically used with the main CSS node are .csd (when client-side decorations are in use), .solid-csd (for client-side decorations without invisible borders), .ssd (used by mutter when rendering server-side decorations). GtkWindow also represents window states with the following style classes on the main node: .tiled, .maximized, .fullscreen. Specialized types of window often add their own discriminating style classes, such as .popup or .tooltip.

GtkWindow adds the .titlebar and .default-decoration style classes to the widget that is added as a titlebar child.

"+"

function "+"
  (Widget : access Gtk_Window_Record'Class)
return Gtk.Buildable.Gtk_Buildable
Parameters
Widget
Return Value

"-"

function "-"
  (Interf : Gtk.Buildable.Gtk_Buildable)
return Gtk_Window
Parameters
Interf
Return Value

Accept_Focus_Property

Accept_Focus_Property : constant Glib.Properties.Property_Boolean;

Whether the window should receive the input focus.

Activate_Default

function Activate_Default
   (Window : not null access Gtk_Window_Record) return Boolean

Activates the default widget for the window, unless the current focused widget has been configured to receive the default action (see Gtk.Widget.Set_Receives_Default), in which case the focused widget is activated.

Parameters
Window
Return Value

True if a widget got activated.

Activate_Focus

function Activate_Focus
   (Window : not null access Gtk_Window_Record) return Boolean

Activates the current focused widget within the window.

Parameters
Window
Return Value

True if a widget got activated.

Activate_Key

function Activate_Key
   (Window : not null access Gtk_Window_Record;
    Event  : Gdk.Event.Gdk_Event_Key) return Boolean

Activates mnemonics and accelerators for this Gtk.Window.Gtk_Window. This is normally called by the default ::key_press_event handler for toplevel windows, however in some cases it may be useful to call this directly when overriding the standard key handling for a toplevel window. Since: gtk+ 2.4

Parameters
Window
Event

a Gdk.Event.Gdk_Event_Key

Return Value

True if a mnemonic or accelerator was found and activated.

Add_Accel_Group

procedure Add_Accel_Group
   (Window      : not null access Gtk_Window_Record;
    Accel_Group : not null access Gtk.Accel_Group.Gtk_Accel_Group_Record'Class)

Associate Accel_Group with Window, such that calling Gtk.Accel_Group.Accel_Groups_Activate on Window will activate accelerators in Accel_Group.

Parameters
Window
Accel_Group

a Gtk.Accel_Group.Gtk_Accel_Group

Add_Mnemonic

procedure Add_Mnemonic
   (Window : not null access Gtk_Window_Record;
    Keyval : Gdk.Types.Gdk_Key_Type;
    Target : not null access Gtk.Widget.Gtk_Widget_Record'Class)

Adds a mnemonic to this window.

Parameters
Window
Keyval

the mnemonic

Target

the widget that gets activated by the mnemonic

Add_Window

procedure Add_Window
   (Window_Group : not null access Gtk_Window_Group_Record;
    Window       : not null access Gtk_Window_Record'Class)

Adds a window to a Gtk.Window.Gtk_Window_Group.

Parameters
Window_Group
Window

the Gtk.Window.Gtk_Window to add

Application_Property

Application_Property : constant Glib.Properties.Property_Object;

Type: Gtk.Application.Gtk_Application The Gtk.Application.Gtk_Application associated with the window.

The application will be kept alive for at least as long as it has any windows associated with it (see Glib.Application.Hold for a way to keep it alive without windows).

Normally, the connection between the application and the window will remain until the window is destroyed, but you can explicitly remove it by setting the :application property to null.

Attached_To_Property

Attached_To_Property : constant Glib.Properties.Property_Object;

Type: Gtk.Widget.Gtk_Widget The widget to which this window is attached. See Gtk.Window.Set_Attached_To.

Examples of places where specifying this relation is useful are for instance a Gtk.Menu.Gtk_Menu created by a Gtk.Combo_Box.Gtk_Combo_Box, a completion popup window created by Gtk.GEntry.Gtk_Entry or a typeahead search entry created by Gtk.Tree_View.Gtk_Tree_View.

Begin_Move_Drag

procedure Begin_Move_Drag
   (Window    : not null access Gtk_Window_Record;
    Button    : Glib.Gint;
    Root_X    : Glib.Gint;
    Root_Y    : Glib.Gint;
    Timestamp : Guint32)

Starts moving a window. This function is used if an application has window movement grips. When GDK can support it, the window movement will be done using the standard mechanism for the [window manager][gtk-X11-arch] or windowing system. Otherwise, GDK will try to emulate window movement, potentially not all that well, depending on the windowing system.

Parameters
Window
Button

mouse button that initiated the drag

Root_X

X position where the user clicked to initiate the drag, in root window coordinates

Root_Y

Y position where the user clicked to initiate the drag

Timestamp

timestamp from the click event that initiated the drag

Begin_Resize_Drag

procedure Begin_Resize_Drag
   (Window    : not null access Gtk_Window_Record;
    Edge      : Gdk.Window.Gdk_Window_Edge;
    Button    : Glib.Gint;
    Root_X    : Glib.Gint;
    Root_Y    : Glib.Gint;
    Timestamp : Guint32)

Starts resizing a window. This function is used if an application has window resizing controls. When GDK can support it, the resize will be done using the standard mechanism for the [window manager][gtk-X11-arch] or windowing system. Otherwise, GDK will try to emulate window resizing, potentially not all that well, depending on the windowing system.

Parameters
Window
Edge

position of the resize control

Button

mouse button that initiated the drag

Root_X

X position where the user clicked to initiate the drag, in root window coordinates

Root_Y

Y position where the user clicked to initiate the drag

Timestamp

timestamp from the click event that initiated the drag

Cb_GObject_Boolean_Boolean

type Cb_GObject_Boolean_Boolean is not null access function
  (Self   : access Glib.Object.GObject_Record'Class;
   Toggle : Boolean) return Boolean;
Parameters
Self
Toggle
Return Value

Cb_GObject_Gtk_Widget_Void

type Cb_GObject_Gtk_Widget_Void is not null access procedure
  (Self   : access Glib.Object.GObject_Record'Class;
   Widget : access Gtk.Widget.Gtk_Widget_Record'Class);
Parameters
Self
Widget

Cb_GObject_Void

type Cb_GObject_Void is not null access procedure
  (Self : access Glib.Object.GObject_Record'Class);
Parameters
Self

Cb_Gtk_Window_Boolean_Boolean

type Cb_Gtk_Window_Boolean_Boolean is not null access function
  (Self   : access Gtk_Window_Record'Class;
   Toggle : Boolean) return Boolean;
Parameters
Self
Toggle
Return Value

Cb_Gtk_Window_Gtk_Widget_Void

type Cb_Gtk_Window_Gtk_Widget_Void is not null access procedure
  (Self   : access Gtk_Window_Record'Class;
   Widget : access Gtk.Widget.Gtk_Widget_Record'Class);
Parameters
Self
Widget

Cb_Gtk_Window_Void

type Cb_Gtk_Window_Void is not null access procedure (Self : access Gtk_Window_Record'Class);
Parameters
Self

Close

procedure Close (Window : not null access Gtk_Window_Record)

Requests that the window is closed, similar to what happens when a window manager close button is clicked. This function can be used with close buttons in custom titlebars. Since: gtk+ 3.10

Parameters
Window

Decorated_Property

Decorated_Property : constant Glib.Properties.Property_Boolean;

Whether the window should be decorated by the window manager.

Default_Height_Property

Default_Height_Property : constant Glib.Properties.Property_Int;

Default_Width_Property

Default_Width_Property : constant Glib.Properties.Property_Int;

Deiconify

procedure Deiconify (Window : not null access Gtk_Window_Record)

Asks to deiconify (i.e. unminimize) the specified Window. Note that you shouldn't assume the window is definitely deiconified afterward, because other entities (e.g. the user or [window manager][gtk-X11-arch])) could iconify it again before your code which assumes deiconification gets to run. You can track iconification via the "window-state-event" signal on Gtk.Widget.Gtk_Widget.

Parameters
Window

Deletable_Property

Deletable_Property : constant Glib.Properties.Property_Boolean;

Whether the window frame should have a close button.

Destroy_With_Parent_Property

Destroy_With_Parent_Property : constant Glib.Properties.Property_Boolean;

Focus_On_Map_Property

Focus_On_Map_Property : constant Glib.Properties.Property_Boolean;

Whether the window should receive the input focus when mapped.

Focus_Visible_Property

Focus_Visible_Property : constant Glib.Properties.Property_Boolean;

Whether 'focus rectangles' are currently visible in this window.

This property is maintained by GTK+ based on user input and should not be set by applications.

Fullscreen

procedure Fullscreen (Window : not null access Gtk_Window_Record)

Asks to place Window in the fullscreen state. Note that you shouldn't assume the window is definitely full screen afterward, because other entities (e.g. the user or [window manager][gtk-X11-arch]) could unfullscreen it again, and not all window managers honor requests to fullscreen windows. But normally the window will end up fullscreen. Just don't write code that crashes if not. You can track the fullscreen state via the "window-state-event" signal on Gtk.Widget.Gtk_Widget. Since: gtk+ 2.2

Parameters
Window

Fullscreen_On_Monitor

procedure Fullscreen_On_Monitor
   (Window  : not null access Gtk_Window_Record;
    Screen  : not null access Gdk.Screen.Gdk_Screen_Record'Class;
    Monitor : Glib.Gint)

Asks to place Window in the fullscreen state. Note that you shouldn't assume the window is definitely full screen afterward. You can track the fullscreen state via the "window-state-event" signal on Gtk.Widget.Gtk_Widget. Since: gtk+ 3.18

Parameters
Window
Screen

a Gdk.Screen.Gdk_Screen to draw to

Monitor

which monitor to go fullscreen on

Get_Accept_Focus

function Get_Accept_Focus
   (Window : not null access Gtk_Window_Record) return Boolean

Gets the value set by Gtk.Window.Set_Accept_Focus. Since: gtk+ 2.4

Parameters
Window
Return Value

True if window should receive the input focus

Get_Attached_To

function Get_Attached_To
   (Window : not null access Gtk_Window_Record)
    return Gtk.Widget.Gtk_Widget

Fetches the attach widget for this window. See Gtk.Window.Set_Attached_To. Since: gtk+ 3.4

Parameters
Window
Return Value

the widget where the window is attached, or null if the window is not attached to any widget.

Get_Current_Device_Grab

function Get_Current_Device_Grab
   (Window_Group : not null access Gtk_Window_Group_Record;
    Device       : not null access Gdk.Device.Gdk_Device_Record'Class)
    return Gtk.Widget.Gtk_Widget

Returns the current grab widget for Device, or null if none. Since: gtk+ 3.0

Parameters
Window_Group
Device

a Gdk.Device.Gdk_Device

Return Value

The grab widget, or null

Get_Current_Grab

function Get_Current_Grab
   (Window_Group : not null access Gtk_Window_Group_Record)
    return Gtk.Widget.Gtk_Widget

Gets the current grab widget of the given group, see Gtk.Widget.Grab_Add. Since: gtk+ 2.22

Parameters
Window_Group
Return Value

the current grab widget of the group

Get_Decorated

function Get_Decorated
   (Window : not null access Gtk_Window_Record) return Boolean

Returns whether the window has been set to have decorations such as a title bar via Gtk.Window.Set_Decorated.

Parameters
Window
Return Value

True if the window has been set to have decorations

Get_Default_Icon_List

function Get_Default_Icon_List return Glib.Object.Object_Simple_List.Glist

Gets the value set by Gtk.Window.Set_Default_Icon_List. The list is a copy and should be freed with g_list_free, but the pixbufs in the list have not had their reference count incremented.

Return Value

Get_Default_Icon_Name

function Get_Default_Icon_Name return UTF8_String

Returns the fallback icon name for windows that has been set with Gtk.Window.Set_Default_Icon_Name. The returned string is owned by GTK+ and should not be modified. It is only valid until the next call to Gtk.Window.Set_Default_Icon_Name. Since: gtk+ 2.16

Return Value

the fallback icon name for windows

Get_Default_Size

procedure Get_Default_Size
   (Window : not null access Gtk_Window_Record;
    Width  : out Glib.Gint;
    Height : out Glib.Gint)

Gets the default size of the window. A value of -1 for the width or height indicates that a default size has not been explicitly set for that dimension, so the "natural" size of the window will be used.

Parameters
Window
Width

location to store the default width, or null

Height

location to store the default height, or null

Get_Default_Widget

function Get_Default_Widget
   (Window : not null access Gtk_Window_Record)
    return Gtk.Widget.Gtk_Widget

Returns the default widget for Window. See Gtk.Window.Set_Default for more details. Since: gtk+ 2.14

Parameters
Window
Return Value

the default widget, or null if there is none.

Get_Deletable

function Get_Deletable
   (Window : not null access Gtk_Window_Record) return Boolean

Returns whether the window has been set to have a close button via Gtk.Window.Set_Deletable. Since: gtk+ 2.10

Parameters
Window
Return Value

True if the window has been set to have a close button

Get_Destroy_With_Parent

function Get_Destroy_With_Parent
   (Window : not null access Gtk_Window_Record) return Boolean

Returns whether the window will be destroyed with its transient parent. See gtk_window_set_destroy_with_parent ().

Parameters
Window
Return Value

True if the window will be destroyed with its transient parent.

Get_Focus

function Get_Focus
   (Window : not null access Gtk_Window_Record)
    return Gtk.Widget.Gtk_Widget

Retrieves the current focused widget within the window. Note that this is the widget that would have the focus if the toplevel window focused; if the toplevel window is not focused then gtk_widget_has_focus (widget) will not be True for the widget.

Parameters
Window
Return Value

the currently focused widget, or null if there is none.

Get_Focus_On_Map

function Get_Focus_On_Map
   (Window : not null access Gtk_Window_Record) return Boolean

Gets the value set by Gtk.Window.Set_Focus_On_Map. Since: gtk+ 2.6

Parameters
Window
Return Value

True if window should receive the input focus when mapped.

Get_Focus_Visible

function Get_Focus_Visible
   (Window : not null access Gtk_Window_Record) return Boolean

Gets the value of the Gtk.Window.Gtk_Window:focus-visible property. Since: gtk+ 3.2

Parameters
Window
Return Value

True if "focus rectangles" are supposed to be visible in this window.

Get_Gravity

function Get_Gravity
   (Window : not null access Gtk_Window_Record)
    return Gdk.Window.Gdk_Gravity

Gets the value set by Gtk.Window.Set_Gravity.

Parameters
Window
Return Value

window gravity

Get_Group

function Get_Group
   (Window : not null access Gtk_Window_Record) return Gtk_Window_Group

Returns the group for Window or the default group, if Window is null or if Window does not have an explicit window group. Since: gtk+ 2.10

Parameters
Window
Return Value

the Gtk.Window.Gtk_Window_Group for a window or the default group

Get_Has_Resize_Grip

function Get_Has_Resize_Grip
   (Window : not null access Gtk_Window_Record) return Boolean

Determines whether the window may have a resize grip. Since: gtk+ 3.0 Deprecated since 3.14, 1

Parameters
Window
Return Value

True if the window has a resize grip

Get_Hide_Titlebar_When_Maximized

function Get_Hide_Titlebar_When_Maximized
   (Window : not null access Gtk_Window_Record) return Boolean

Returns whether the window has requested to have its titlebar hidden when maximized. See gtk_window_set_hide_titlebar_when_maximized (). Since: gtk+ 3.4

Parameters
Window
Return Value

True if the window has requested to have its titlebar hidden when maximized

Get_Icon

function Get_Icon
   (Window : not null access Gtk_Window_Record)
    return Gdk.Pixbuf.Gdk_Pixbuf

Gets the value set by Gtk.Window.Set_Icon (or if you've called Gtk.Window.Set_Icon_List, gets the first icon in the icon list).

Parameters
Window
Return Value

icon for window or null if none

Get_Icon_List

function Get_Icon_List
   (Window : not null access Gtk_Window_Record)
    return Glib.Object.Object_Simple_List.Glist

Retrieves the list of icons set by Gtk.Window.Set_Icon_List. The list is copied, but the reference count on each member won't be incremented.

Parameters
Window
Return Value

Get_Icon_Name

function Get_Icon_Name
   (Window : not null access Gtk_Window_Record) return UTF8_String

Returns the name of the themed icon for the window, see Gtk.Window.Set_Icon_Name. Since: gtk+ 2.6

Parameters
Window
Return Value

the icon name or null if the window has no themed icon

Get_Mnemonic_Modifier

function Get_Mnemonic_Modifier
   (Window : not null access Gtk_Window_Record)
    return Gdk.Types.Gdk_Modifier_Type

Returns the mnemonic modifier for this window. See Gtk.Window.Set_Mnemonic_Modifier.

Parameters
Window
Return Value

the modifier mask used to activate mnemonics on this window.

Get_Mnemonics_Visible

function Get_Mnemonics_Visible
   (Window : not null access Gtk_Window_Record) return Boolean

Gets the value of the Gtk.Window.Gtk_Window:mnemonics-visible property. Since: gtk+ 2.20

Parameters
Window
Return Value

True if mnemonics are supposed to be visible in this window.

Get_Modal

function Get_Modal
   (Window : not null access Gtk_Window_Record) return Boolean

Returns whether the window is modal. See Gtk.Window.Set_Modal.

Parameters
Window
Return Value

True if the window is set to be modal and establishes a grab when shown

Get_Position

procedure Get_Position
   (Window : not null access Gtk_Window_Record;
    Root_X : out Glib.Gint;
    Root_Y : out Glib.Gint)

This function returns the position you need to pass to Gtk.Window.Move to keep Window in its current position. This means that the meaning of the returned value varies with window gravity. See Gtk.Window.Move for more details. The reliability of this function depends on the windowing system currently in use. Some windowing systems, such as Wayland, do not support a global coordinate system, and thus the position of the window will always be (0, 0). Others, like X11, do not have a reliable way to obtain the geometry of the decorations of a window if they are provided by the window manager. Additionally, on X11, window manager have been known to mismanage window gravity, which result in windows moving even if you use the coordinates of the current position as returned by this function. If you haven't changed the window gravity, its gravity will be GDK_GRAVITY_NORTH_WEST. This means that Gtk.Window.Get_Position gets the position of the top-left corner of the window manager frame for the window. Gtk.Window.Move sets the position of this same top-left corner. If a window has gravity GDK_GRAVITY_STATIC the window manager frame is not relevant, and thus Gtk.Window.Get_Position will always produce accurate results. However you can't use static gravity to do things like place a window in a corner of the screen, because static gravity ignores the window manager decorations. Ideally, this function should return appropriate values if the window has client side decorations, assuming that the windowing system supports global coordinates. In practice, saving the window position should not be left to applications, as they lack enough knowledge of the windowing system and the window manager state to effectively do so. The appropriate way to implement saving the window position is to use a platform-specific protocol, wherever that is available.

Parameters
Window
Root_X

return location for X coordinate of gravity-determined reference point, or null

Root_Y

return location for Y coordinate of gravity-determined reference point, or null

Get_Resizable

function Get_Resizable
   (Window : not null access Gtk_Window_Record) return Boolean

Gets the value set by Gtk.Window.Set_Resizable.

Parameters
Window
Return Value

True if the user can resize the window

Get_Resize_Grip_Area

procedure Get_Resize_Grip_Area
   (Window    : not null access Gtk_Window_Record;
    Rect      : out Gdk.Rectangle.Gdk_Rectangle;
    retrieved : out Boolean)

If a window has a resize grip, this will retrieve the grip position, width and height into the specified Gdk.Rectangle.Gdk_Rectangle. Since: gtk+ 3.0 Deprecated since 3.14, 1

Parameters
Window
Rect

a pointer to a Gdk.Rectangle.Gdk_Rectangle which we should store the resize grip area @return True if the resize grip's area was retrieved

retrieved

Get_Role

function Get_Role
   (Window : not null access Gtk_Window_Record) return UTF8_String

Returns the role of the window. See Gtk.Window.Set_Role for further explanation.

Parameters
Window
Return Value

the role of the window if set, or null. The returned is owned by the widget and must not be modified or freed.

Get_Screen

function Get_Screen
   (Window : not null access Gtk_Window_Record)
    return Gdk.Screen.Gdk_Screen

Returns the Gdk.Screen.Gdk_Screen associated with Window. Since: gtk+ 2.2

Parameters
Window
Return Value

a Gdk.Screen.Gdk_Screen.

Get_Size

procedure Get_Size
   (Window : not null access Gtk_Window_Record;
    Width  : out Glib.Gint;
    Height : out Glib.Gint)

Obtains the current size of Window. If Window is not visible on screen, this function return the size GTK+ will suggest to the [window manager][gtk-X11-arch] for the initial window size (but this is not reliably the same as the size the window manager will actually select). See: Gtk.Window.Set_Default_Size. Depending on the windowing system and the window manager constraints, the size returned by this function may not match the size set using Gtk.Window.Resize; additionally, since Gtk.Window.Resize may be implemented as an asynchronous operation, GTK+ cannot guarantee in any way that this code:

// width and height are set elsewhere
gtk_window_resize (window, width, height);

int new_width, new_height;
gtk_window_get_size (window, &new_width, &new_height);

will result in new_width and new_height matching width and height, respectively. This function will return the logical size of the Gtk.Window.Gtk_Window, excluding the widgets used in client side decorations; there is, however, no guarantee that the result will be completely accurate because client side decoration may include widgets that depend on the user preferences and that may not be visibile at the time you call this function. The dimensions returned by this function are suitable for being stored across sessions; use Gtk.Window.Set_Default_Size to restore them when before showing the window. To avoid potential race conditions, you should only call this function in response to a size change notification, for instance inside a handler for the Gtk.Widget.Gtk_Widget::size-allocate signal, or inside a handler for the Gtk.Widget.Gtk_Widget::configure-event signal:

static void
on_size_allocate (GtkWidget *widget, GtkAllocation *allocation)
{
  int new_width, new_height;

  gtk_window_get_size (GTK_WINDOW (widget), &new_width, &new_height);

  ...
}

Note that, if you connect to the Gtk.Widget.Gtk_Widget::size-allocate signal, you should not use the dimensions of the Gtk_Allocation passed to the signal handler, as the allocation may contain client side decorations added by GTK+, depending on the windowing system in use. If you are getting a window size in order to position the window on the screen, you should, instead, simply set the window's semantic type with Gtk.Window.Set_Type_Hint, which allows the window manager to e.g. center dialogs. Also, if you set the transient parent of dialogs with Gtk.Window.Set_Transient_For window managers will often center the dialog over its parent window. It's much preferred to let the window manager handle these cases rather than doing it yourself, because all apps will behave consistently and according to user or system preferences, if the window manager handles it. Also, the window manager can take into account the size of the window decorations and border that it may add, and of which GTK+ has no knowledge. Additionally, positioning windows in global screen coordinates may not be allowed by the windowing system. For more information, see: Gtk.Window.Set_Position.

Parameters
Window
Width

return location for width, or null

Height

return location for height, or null

Get_Skip_Pager_Hint

function Get_Skip_Pager_Hint
   (Window : not null access Gtk_Window_Record) return Boolean

Gets the value set by Gtk.Window.Set_Skip_Pager_Hint. Since: gtk+ 2.2

Parameters
Window
Return Value

True if window shouldn't be in pager

Get_Skip_Taskbar_Hint

function Get_Skip_Taskbar_Hint
   (Window : not null access Gtk_Window_Record) return Boolean

Gets the value set by Gtk.Window.Set_Skip_Taskbar_Hint Since: gtk+ 2.2

Parameters
Window
Return Value

True if window shouldn't be in taskbar

Get_Title

function Get_Title
   (Window : not null access Gtk_Window_Record) return UTF8_String

Retrieves the title of the window. See Gtk.Window.Set_Title.

Parameters
Window
Return Value

the title of the window, or null if none has been set explicitly. The returned string is owned by the widget and must not be modified or freed.

Get_Titlebar

function Get_Titlebar
   (Window : not null access Gtk_Window_Record)
    return Gtk.Widget.Gtk_Widget

Returns the custom titlebar that has been set with Gtk.Window.Set_Titlebar. Since: gtk+ 3.16

Parameters
Window
Return Value

the custom titlebar, or null

Get_Transient_For

function Get_Transient_For
   (Window : not null access Gtk_Window_Record) return Gtk_Window

Fetches the transient parent for this window. See Gtk.Window.Set_Transient_For.

Parameters
Window
Return Value

the transient parent for this window, or null if no transient parent has been set.

Get_Type

function Get_Type return Glib.GType
Return Value

Get_Type_Hint

function Get_Type_Hint
   (Window : not null access Gtk_Window_Record)
    return Gdk.Window.Gdk_Window_Type_Hint

Gets the type hint for this window. See Gtk.Window.Set_Type_Hint.

Parameters
Window
Return Value

the type hint for Window.

Get_Urgency_Hint

function Get_Urgency_Hint
   (Window : not null access Gtk_Window_Record) return Boolean

Gets the value set by Gtk.Window.Set_Urgency_Hint Since: gtk+ 2.8

Parameters
Window
Return Value

True if window is urgent

Get_Window_Type

function Get_Window_Type
   (Window : not null access Gtk_Window_Record)
    return Gtk.Enums.Gtk_Window_Type

Gets the type of the window. See Gtk.Enums.Gtk_Window_Type. Since: gtk+ 2.20

Parameters
Window
Return Value

the type of the window

Gravity_Property

Gravity_Property : constant Gdk.Window.Property_Gdk_Gravity;

Type: Gdk.Window.Gdk_Gravity The window gravity of the window. See Gtk.Window.Move and Gdk.Window.Gdk_Gravity for more details about window gravity.

Group_Get_Type

function Group_Get_Type return Glib.GType
Return Value

Gtk_New

procedure Gtk_New
   (Window   : out Gtk_Window;
    The_Type : Gtk.Enums.Gtk_Window_Type := Gtk.Enums.Window_Toplevel)

Creates a new Gtk.Window.Gtk_Window, which is a toplevel window that can contain other widgets. Nearly always, the type of the window should be GTK_WINDOW_TOPLEVEL. If you're implementing something like a popup menu from scratch (which is a bad idea, just use Gtk.Menu.Gtk_Menu), you might use GTK_WINDOW_POPUP. GTK_WINDOW_POPUP is not for dialogs, though in some other toolkits dialogs are called "popups". In GTK+, GTK_WINDOW_POPUP means a pop-up menu or pop-up tooltip. On X11, popup windows are not controlled by the [window manager][gtk-X11-arch]. If you simply want an undecorated window (no window borders), use Gtk.Window.Set_Decorated, don't use GTK_WINDOW_POPUP. All top-level windows created by Gtk.Window.Gtk_New are stored in an internal top-level window list. This list can be obtained from Gtk.Window.List_Toplevels. Due to Gtk+ keeping a reference to the window internally, Gtk.Window.Gtk_New does not return a reference to the caller. To delete a Gtk.Window.Gtk_Window, call Gtk.Widget.Destroy. Initialize does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Window
The_Type

type of window

Gtk_New

procedure Gtk_New (Window_Group : out Gtk_Window_Group)

Creates a new Gtk.Window.Gtk_Window_Group object. Grabs added with Gtk.Widget.Grab_Add only affect windows within the same Gtk.Window.Gtk_Window_Group. Initialize does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Window_Group

Gtk_Window

type Gtk_Window is access all Gtk_Window_Record'Class;

Gtk_Window_Group

type Gtk_Window_Group is access all Gtk_Window_Group_Record'Class;

Gtk_Window_Group_New

function Gtk_Window_Group_New return Gtk_Window_Group

Creates a new Gtk.Window.Gtk_Window_Group object. Grabs added with Gtk.Widget.Grab_Add only affect windows within the same Gtk.Window.Gtk_Window_Group.

Return Value

Gtk_Window_Group_Record

type Gtk_Window_Group_Record is new GObject_Record with null record;

Gtk_Window_New

function Gtk_Window_New
   (The_Type : Gtk.Enums.Gtk_Window_Type := Gtk.Enums.Window_Toplevel)
    return Gtk_Window

Creates a new Gtk.Window.Gtk_Window, which is a toplevel window that can contain other widgets. Nearly always, the type of the window should be GTK_WINDOW_TOPLEVEL. If you're implementing something like a popup menu from scratch (which is a bad idea, just use Gtk.Menu.Gtk_Menu), you might use GTK_WINDOW_POPUP. GTK_WINDOW_POPUP is not for dialogs, though in some other toolkits dialogs are called "popups". In GTK+, GTK_WINDOW_POPUP means a pop-up menu or pop-up tooltip. On X11, popup windows are not controlled by the [window manager][gtk-X11-arch]. If you simply want an undecorated window (no window borders), use Gtk.Window.Set_Decorated, don't use GTK_WINDOW_POPUP. All top-level windows created by Gtk.Window.Gtk_New are stored in an internal top-level window list. This list can be obtained from Gtk.Window.List_Toplevels. Due to Gtk+ keeping a reference to the window internally, Gtk.Window.Gtk_New does not return a reference to the caller. To delete a Gtk.Window.Gtk_Window, call Gtk.Widget.Destroy.

Parameters
The_Type

type of window

Return Value

Gtk_Window_Record

type Gtk_Window_Record is new Gtk_Bin_Record with null record;

Has_Group

function Has_Group
   (Window : not null access Gtk_Window_Record) return Boolean

Returns whether Window has an explicit window group.

Parameters
Window
Return Value

True if Window has an explicit window group. Since 2.22

Has_Resize_Grip_Property

Has_Resize_Grip_Property : constant Glib.Properties.Property_Boolean;

Whether the window has a corner resize grip.

Note that the resize grip is only shown if the window is actually resizable and not maximized. Use Gtk.Window.Gtk_Window:resize-grip-visible to find out if the resize grip is currently shown.

Has_Toplevel_Focus

function Has_Toplevel_Focus
   (Window : not null access Gtk_Window_Record) return Boolean

Returns whether the input focus is within this GtkWindow. For real toplevel windows, this is identical to Gtk.Window.Is_Active, but for embedded windows, like Gtk.Plug.Gtk_Plug, the results will differ. Since: gtk+ 2.4

Parameters
Window
Return Value

True if the input focus is within this GtkWindow

Has_Toplevel_Focus_Property

Has_Toplevel_Focus_Property : constant Glib.Properties.Property_Boolean;

Hide_Titlebar_When_Maximized_Property

Hide_Titlebar_When_Maximized_Property : constant Glib.Properties.Property_Boolean;

Whether the titlebar should be hidden during maximization.

Icon_Name_Property

Icon_Name_Property : constant Glib.Properties.Property_String;

The :icon-name property specifies the name of the themed icon to use as the window icon. See Gtk.Icon_Theme.Gtk_Icon_Theme for more details.

Icon_Property

Icon_Property : constant Glib.Properties.Property_Object;

Type: Gdk.Pixbuf.Gdk_Pixbuf

Iconify

procedure Iconify (Window : not null access Gtk_Window_Record)

Asks to iconify (i.e. minimize) the specified Window. Note that you shouldn't assume the window is definitely iconified afterward, because other entities (e.g. the user or [window manager][gtk-X11-arch]) could deiconify it again, or there may not be a window manager in which case iconification isn't possible, etc. But normally the window will end up iconified. Just don't write code that crashes if not. It's permitted to call this function before showing a window, in which case the window will be iconified before it ever appears onscreen. You can track iconification via the "window-state-event" signal on Gtk.Widget.Gtk_Widget.

Parameters
Window

Implements_Gtk_Buildable

package Implements_Gtk_Buildable is new Glib.Types.Implements
  (Gtk.Buildable.Gtk_Buildable, Gtk_Window_Record, Gtk_Window);

Initialize

procedure Initialize
   (Window_Group : not null access Gtk_Window_Group_Record'Class)

Creates a new Gtk.Window.Gtk_Window_Group object. Grabs added with Gtk.Widget.Grab_Add only affect windows within the same Gtk.Window.Gtk_Window_Group. Initialize does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Window_Group

Initialize

procedure Initialize
   (Window   : not null access Gtk_Window_Record'Class;
    The_Type : Gtk.Enums.Gtk_Window_Type := Gtk.Enums.Window_Toplevel)

Creates a new Gtk.Window.Gtk_Window, which is a toplevel window that can contain other widgets. Nearly always, the type of the window should be GTK_WINDOW_TOPLEVEL. If you're implementing something like a popup menu from scratch (which is a bad idea, just use Gtk.Menu.Gtk_Menu), you might use GTK_WINDOW_POPUP. GTK_WINDOW_POPUP is not for dialogs, though in some other toolkits dialogs are called "popups". In GTK+, GTK_WINDOW_POPUP means a pop-up menu or pop-up tooltip. On X11, popup windows are not controlled by the [window manager][gtk-X11-arch]. If you simply want an undecorated window (no window borders), use Gtk.Window.Set_Decorated, don't use GTK_WINDOW_POPUP. All top-level windows created by Gtk.Window.Gtk_New are stored in an internal top-level window list. This list can be obtained from Gtk.Window.List_Toplevels. Due to Gtk+ keeping a reference to the window internally, Gtk.Window.Gtk_New does not return a reference to the caller. To delete a Gtk.Window.Gtk_Window, call Gtk.Widget.Destroy. Initialize does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Window
The_Type

type of window

Is_Active

function Is_Active
   (Window : not null access Gtk_Window_Record) return Boolean

Returns whether the window is part of the current active toplevel. (That is, the toplevel window receiving keystrokes.) The return value is True if the window is active toplevel itself, but also if it is, say, a Gtk.Plug.Gtk_Plug embedded in the active toplevel. You might use this function if you wanted to draw a widget differently in an active window from a widget in an inactive window. See Gtk.Window.Has_Toplevel_Focus Since: gtk+ 2.4

Parameters
Window
Return Value

True if the window part of the current active window.

Is_Active_Property

Is_Active_Property : constant Glib.Properties.Property_Boolean;

Is_Maximized

function Is_Maximized
   (Window : not null access Gtk_Window_Record) return Boolean

Retrieves the current maximized state of Window. Note that since maximization is ultimately handled by the window manager and happens asynchronously to an application request, you shouldn't assume the return value of this function changing immediately (or at all), as an effect of calling Gtk.Window.Maximize or Gtk.Window.Unmaximize. Since: gtk+ 3.12

Parameters
Window
Return Value

whether the window has a maximized state.

Is_Maximized_Property

Is_Maximized_Property : constant Glib.Properties.Property_Boolean;

List_Toplevels

function List_Toplevels return Gtk.Widget.Widget_List.Glist

Returns a list of all existing toplevel windows. The widgets in the list are not individually referenced. If you want to iterate through the list and perform actions involving callbacks that might destroy the widgets, you must call g_list_foreach (result, (GFunc)g_object_ref, NULL) first, and then unref all the widgets afterwards.

Return Value

List_Windows

function List_Windows
   (Window_Group : not null access Gtk_Window_Group_Record)
    return Gtk.Widget.Widget_List.Glist

Returns a list of the Gtk_Windows that belong to Window_Group. Since: gtk+ 2.14

Parameters
Window_Group
Return Value

Maximize

procedure Maximize (Window : not null access Gtk_Window_Record)

Asks to maximize Window, so that it becomes full-screen. Note that you shouldn't assume the window is definitely maximized afterward, because other entities (e.g. the user or [window manager][gtk-X11-arch]) could unmaximize it again, and not all window managers support maximization. But normally the window will end up maximized. Just don't write code that crashes if not. It's permitted to call this function before showing a window, in which case the window will be maximized when it appears onscreen initially. You can track maximization via the "window-state-event" signal on Gtk.Widget.Gtk_Widget, or by listening to notifications on the Gtk.Window.Gtk_Window:is-maximized property.

Parameters
Window

Mnemonic_Activate

function Mnemonic_Activate
   (Window   : not null access Gtk_Window_Record;
    Keyval   : Gdk.Types.Gdk_Key_Type;
    Modifier : Gdk.Types.Gdk_Modifier_Type) return Boolean

Activates the targets associated with the mnemonic.

Parameters
Window
Keyval

the mnemonic

Modifier

the modifiers

Return Value

True if the activation is done.

Mnemonics_Visible_Property

Mnemonics_Visible_Property : constant Glib.Properties.Property_Boolean;

Whether mnemonics are currently visible in this window.

This property is maintained by GTK+ based on user input, and should not be set by applications.

Modal_Property

Modal_Property : constant Glib.Properties.Property_Boolean;

Move

procedure Move
   (Window : not null access Gtk_Window_Record;
    X      : Glib.Gint;
    Y      : Glib.Gint)

Asks the [window manager][gtk-X11-arch] to move Window to the given position. Window managers are free to ignore this; most window managers ignore requests for initial window positions (instead using a user-defined placement algorithm) and honor requests after the window has already been shown. Note: the position is the position of the gravity-determined reference point for the window. The gravity determines two things: first, the location of the reference point in root window coordinates; and second, which point on the window is positioned at the reference point. By default the gravity is GDK_GRAVITY_NORTH_WEST, so the reference point is simply the X, Y supplied to Gtk.Window.Move. The top-left corner of the window decorations (aka window frame or border) will be placed at X, Y. Therefore, to position a window at the top left of the screen, you want to use the default gravity (which is GDK_GRAVITY_NORTH_WEST) and move the window to 0,0. To position a window at the bottom right corner of the screen, you would set GDK_GRAVITY_SOUTH_EAST, which means that the reference point is at X + the window width and Y + the window height, and the bottom-right corner of the window border will be placed at that reference point. So, to place a window in the bottom right corner you would first set gravity to south east, then write: gtk_window_move (window, gdk_screen_width () - window_width, gdk_screen_height () - window_height) (note that this example does not take multi-head scenarios into account). The Extended Window Manager Hints Specification has a nice table of gravities in the "implementation notes" section. The Gtk.Window.Get_Position documentation may also be relevant.

Parameters
Window
X

X coordinate to move window to

Y

Y coordinate to move window to

On_Activate_Default

procedure On_Activate_Default
   (Self  : not null access Gtk_Window_Record;
    Call  : Cb_GObject_Void;
    Slot  : not null access Glib.Object.GObject_Record'Class;
    After : Boolean := False)

The ::activate-default signal is a [keybinding signal][GtkBindingSignal] which gets emitted when the user activates the default widget of Window.

Parameters
Self
Call
Slot
After

On_Activate_Default

procedure On_Activate_Default
   (Self  : not null access Gtk_Window_Record;
    Call  : Cb_Gtk_Window_Void;
    After : Boolean := False)

The ::activate-default signal is a [keybinding signal][GtkBindingSignal] which gets emitted when the user activates the default widget of Window.

Parameters
Self
Call
After

On_Activate_Focus

procedure On_Activate_Focus
   (Self  : not null access Gtk_Window_Record;
    Call  : Cb_GObject_Void;
    Slot  : not null access Glib.Object.GObject_Record'Class;
    After : Boolean := False)

The ::activate-focus signal is a [keybinding signal][GtkBindingSignal] which gets emitted when the user activates the currently focused widget of Window.

Parameters
Self
Call
Slot
After

On_Activate_Focus

procedure On_Activate_Focus
   (Self  : not null access Gtk_Window_Record;
    Call  : Cb_Gtk_Window_Void;
    After : Boolean := False)

The ::activate-focus signal is a [keybinding signal][GtkBindingSignal] which gets emitted when the user activates the currently focused widget of Window.

Parameters
Self
Call
After

On_Enable_Debugging

procedure On_Enable_Debugging
   (Self  : not null access Gtk_Window_Record;
    Call  : Cb_GObject_Boolean_Boolean;
    Slot  : not null access Glib.Object.GObject_Record'Class;
    After : Boolean := False)

The ::enable-debugging signal is a [keybinding signal][GtkBindingSignal] which gets emitted when the user enables or disables interactive debugging. When Toggle is True, interactive debugging is toggled on or off, when it is False, the debugger will be pointed at the widget under the pointer.

The default bindings for this signal are Ctrl-Shift-I and Ctrl-Shift-D.

Callback parameters: -- @param Toggle toggle the debugger

Parameters
Self
Call
Slot
After

On_Enable_Debugging

procedure On_Enable_Debugging
   (Self  : not null access Gtk_Window_Record;
    Call  : Cb_Gtk_Window_Boolean_Boolean;
    After : Boolean := False)

The ::enable-debugging signal is a [keybinding signal][GtkBindingSignal] which gets emitted when the user enables or disables interactive debugging. When Toggle is True, interactive debugging is toggled on or off, when it is False, the debugger will be pointed at the widget under the pointer.

The default bindings for this signal are Ctrl-Shift-I and Ctrl-Shift-D.

Callback parameters: -- @param Toggle toggle the debugger

Parameters
Self
Call
After

On_Keys_Changed

procedure On_Keys_Changed
   (Self  : not null access Gtk_Window_Record;
    Call  : Cb_GObject_Void;
    Slot  : not null access Glib.Object.GObject_Record'Class;
    After : Boolean := False)

The ::keys-changed signal gets emitted when the set of accelerators or mnemonics that are associated with Window changes.

Parameters
Self
Call
Slot
After

On_Keys_Changed

procedure On_Keys_Changed
   (Self  : not null access Gtk_Window_Record;
    Call  : Cb_Gtk_Window_Void;
    After : Boolean := False)

The ::keys-changed signal gets emitted when the set of accelerators or mnemonics that are associated with Window changes.

Parameters
Self
Call
After

On_Set_Focus

procedure On_Set_Focus
   (Self  : not null access Gtk_Window_Record;
    Call  : Cb_GObject_Gtk_Widget_Void;
    Slot  : not null access Glib.Object.GObject_Record'Class;
    After : Boolean := False)

This signal is emitted whenever the currently focused widget in this window changes.

Parameters
Self
Call
Slot
After

On_Set_Focus

procedure On_Set_Focus
   (Self  : not null access Gtk_Window_Record;
    Call  : Cb_Gtk_Window_Gtk_Widget_Void;
    After : Boolean := False)

This signal is emitted whenever the currently focused widget in this window changes.

Parameters
Self
Call
After

Parse_Geometry

function Parse_Geometry
   (Window   : not null access Gtk_Window_Record;
    Geometry : UTF8_String) return Boolean

Parses a standard X Window System geometry string - see the manual page for X (type "man X") for details on this. Gtk.Window.Parse_Geometry does work on all GTK+ ports including Win32 but is primarily intended for an X environment. If either a size or a position can be extracted from the geometry string, Gtk.Window.Parse_Geometry returns True and calls Gtk.Window.Set_Default_Size and/or Gtk.Window.Move to resize/move the window. If Gtk.Window.Parse_Geometry returns True, it will also set the GDK_HINT_USER_POS and/or GDK_HINT_USER_SIZE hints indicating to the window manager that the size/position of the window was user-specified. This causes most window managers to honor the geometry. Note that for Gtk.Window.Parse_Geometry to work as expected, it has to be called when the window has its "final" size, i.e. after calling Gtk.Widget.Show_All on the contents and Gtk.Window.Set_Geometry_Hints on the window.

include <gtk/gtk.h>

static void
fill_with_content (GtkWidget *vbox)
{
  // fill with content...
}

int
main (int argc, char *argv[])
{
  GtkWidget *window, *vbox;
  GdkGeometry size_hints = {
    100, 50, 0, 0, 100, 50, 10,
    10, 0.0, 0.0, GDK_GRAVITY_NORTH_WEST
  };

  gtk_init (&argc, &argv);

  window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);

  gtk_container_add (GTK_CONTAINER (window), vbox);
  fill_with_content (vbox);
  gtk_widget_show_all (vbox);

  gtk_window_set_geometry_hints (GTK_WINDOW (window),
	  			    NULL,
				    &size_hints,
				    GDK_HINT_MIN_SIZE |
				    GDK_HINT_BASE_SIZE |
				    GDK_HINT_RESIZE_INC);

  if (argc > 1)
    {
      gboolean res;
      res = gtk_window_parse_geometry (GTK_WINDOW (window),
                                       argv[1]);
      if (! res)
        fprintf (stderr,
                 "Failed to parse "%s"\n",
                 argv[1]);
    }

  gtk_widget_show_all (window);
  gtk_main ();

  return 0;
}

Deprecated since 3.20, 1

Parameters
Window
Geometry

geometry string

Return Value

True if string was parsed successfully

Present

procedure Present (Window : not null access Gtk_Window_Record)

Presents a window to the user. This function should not be used as when it is called, it is too late to gather a valid timestamp to allow focus stealing prevention to work correctly.

Parameters
Window

Present_With_Time

procedure Present_With_Time
   (Window    : not null access Gtk_Window_Record;
    Timestamp : Guint32)

Presents a window to the user. This may mean raising the window in the stacking order, deiconifying it, moving it to the current desktop, and/or giving it the keyboard focus, possibly dependent on the user's platform, window manager, and preferences. If Window is hidden, this function calls Gtk.Widget.Show as well. This function should be used when the user tries to open a window that's already open. Say for example the preferences dialog is currently open, and the user chooses Preferences from the menu a second time; use Gtk.Window.Present to move the already-open dialog where the user can see it. Presents a window to the user in response to a user interaction. The timestamp should be gathered when the window was requested to be shown (when clicking a link for example), rather than once the window is ready to be shown. Since: gtk+ 2.8

Parameters
Window
Timestamp

the timestamp of the user interaction (typically a button or key press event) which triggered this call

Propagate_Key_Event

function Propagate_Key_Event
   (Window : not null access Gtk_Window_Record;
    Event  : Gdk.Event.Gdk_Event_Key) return Boolean

Propagate a key press or release event to the focus widget and up the focus container chain until a widget handles Event. This is normally called by the default ::key_press_event and ::key_release_event handlers for toplevel windows, however in some cases it may be useful to call this directly when overriding the standard key handling for a toplevel window. Since: gtk+ 2.4

Parameters
Window
Event

a Gdk.Event.Gdk_Event_Key

Return Value

True if a widget in the focus chain handled the event.

Remove_Accel_Group

procedure Remove_Accel_Group
   (Window      : not null access Gtk_Window_Record;
    Accel_Group : not null access Gtk.Accel_Group.Gtk_Accel_Group_Record'Class)

Reverses the effects of Gtk.Window.Add_Accel_Group.

Parameters
Window
Accel_Group

a Gtk.Accel_Group.Gtk_Accel_Group

Remove_Mnemonic

procedure Remove_Mnemonic
   (Window : not null access Gtk_Window_Record;
    Keyval : Gdk.Types.Gdk_Key_Type;
    Target : not null access Gtk.Widget.Gtk_Widget_Record'Class)

Removes a mnemonic from this window.

Parameters
Window
Keyval

the mnemonic

Target

the widget that gets activated by the mnemonic

Remove_Window

procedure Remove_Window
   (Window_Group : not null access Gtk_Window_Group_Record;
    Window       : not null access Gtk_Window_Record'Class)

Removes a window from a Gtk.Window.Gtk_Window_Group.

Parameters
Window_Group
Window

the Gtk.Window.Gtk_Window to remove

Reshow_With_Initial_Size

procedure Reshow_With_Initial_Size
   (Window : not null access Gtk_Window_Record)

Hides Window, then reshows it, resetting the default size and position of the window. Used by GUI builders only. Deprecated since 3.10, 1

Parameters
Window

Resizable_Property

Resizable_Property : constant Glib.Properties.Property_Boolean;

Resize

procedure Resize
   (Window : not null access Gtk_Window_Record;
    Width  : Glib.Gint;
    Height : Glib.Gint)

Resizes the window as if the user had done so, obeying geometry constraints. The default geometry constraint is that windows may not be smaller than their size request; to override this constraint, call Gtk.Widget.Set_Size_Request to set the window's request to a smaller value. If Gtk.Window.Resize is called before showing a window for the first time, it overrides any default size set with Gtk.Window.Set_Default_Size. Windows may not be resized smaller than 1 by 1 pixels. When using client side decorations, GTK+ will do its best to adjust the given size so that the resulting window size matches the requested size without the title bar, borders and shadows added for the client side decorations, but there is no guarantee that the result will be totally accurate because these widgets added for client side decorations depend on the theme and may not be realized or visible at the time Gtk.Window.Resize is issued. If the GtkWindow has a titlebar widget (see Gtk.Window.Set_Titlebar), then typically, Gtk.Window.Resize will compensate for the height of the titlebar widget only if the height is known when the resulting GtkWindow configuration is issued. For example, if new widgets are added after the GtkWindow configuration and cause the titlebar widget to grow in height, this will result in a window content smaller that specified by Gtk.Window.Resize and not a larger window.

Parameters
Window
Width

width in pixels to resize the window to

Height

height in pixels to resize the window to

Resize_Grip_Is_Visible

function Resize_Grip_Is_Visible
   (Window : not null access Gtk_Window_Record) return Boolean

Determines whether a resize grip is visible for the specified window. Since: gtk+ 3.0 Deprecated since 3.14, 1

Parameters
Window
Return Value

True if a resize grip exists and is visible

Resize_Grip_Visible_Property

Resize_Grip_Visible_Property : constant Glib.Properties.Property_Boolean;

Whether a corner resize grip is currently shown.

Resize_To_Geometry

procedure Resize_To_Geometry
   (Window : not null access Gtk_Window_Record;
    Width  : Glib.Gint;
    Height : Glib.Gint)

Like Gtk.Window.Resize, but Width and Height are interpreted in terms of the base size and increment set with gtk_window_set_geometry_hints. Since: gtk+ 3.0 Deprecated since 3.20, 1

Parameters
Window
Width

width in resize increments to resize the window to

Height

height in resize increments to resize the window to

Role_Property

Role_Property : constant Glib.Properties.Property_String;

Screen_Property

Screen_Property : constant Glib.Properties.Property_Object;

Type: Gdk.Screen.Gdk_Screen

Set_Accept_Focus

procedure Set_Accept_Focus
   (Window  : not null access Gtk_Window_Record;
    Setting : Boolean)

Windows may set a hint asking the desktop environment not to receive the input focus. This function sets this hint. Since: gtk+ 2.4

Parameters
Window
Setting

True to let this window receive input focus

Set_Attached_To

procedure Set_Attached_To
   (Window        : not null access Gtk_Window_Record;
    Attach_Widget : access Gtk.Widget.Gtk_Widget_Record'Class)

Marks Window as attached to Attach_Widget. This creates a logical binding between the window and the widget it belongs to, which is used by GTK+ to propagate information such as styling or accessibility to Window as if it was a children of Attach_Widget. Examples of places where specifying this relation is useful are for instance a Gtk.Menu.Gtk_Menu created by a Gtk.Combo_Box.Gtk_Combo_Box, a completion popup window created by Gtk.GEntry.Gtk_Entry or a typeahead search entry created by Gtk.Tree_View.Gtk_Tree_View. Note that this function should not be confused with Gtk.Window.Set_Transient_For, which specifies a window manager relation between two toplevels instead. Passing null for Attach_Widget detaches the window. Since: gtk+ 3.4

Parameters
Window
Attach_Widget

a Gtk.Widget.Gtk_Widget, or null

Set_Auto_Startup_Notification

procedure Set_Auto_Startup_Notification (Setting : Boolean)

By default, after showing the first Gtk.Window.Gtk_Window, GTK+ calls gdk_notify_startup_complete. Call this function to disable the automatic startup notification. You might do this if your first window is a splash screen, and you want to delay notification until after your real main window has been shown, for example. In that example, you would disable startup notification temporarily, show your splash screen, then re-enable it so that showing the main window would automatically result in notification. Since: gtk+ 2.2

Parameters
Setting

True to automatically do startup notification

Set_Decorated

procedure Set_Decorated
   (Window  : not null access Gtk_Window_Record;
    Setting : Boolean)

By default, windows are decorated with a title bar, resize controls, etc. Some [window managers][gtk-X11-arch] allow GTK+ to disable these decorations, creating a borderless window. If you set the decorated property to False using this function, GTK+ will do its best to convince the window manager not to decorate the window. Depending on the system, this function may not have any effect when called on a window that is already visible, so you should call it before calling Gtk.Widget.Show. On Windows, this function always works, since there's no window manager policy involved.

Parameters
Window
Setting

True to decorate the window

Set_Default

procedure Set_Default
   (Window         : not null access Gtk_Window_Record;
    Default_Widget : access Gtk.Widget.Gtk_Widget_Record'Class)

The default widget is the widget that's activated when the user presses Enter in a dialog (for example). This function sets or unsets the default widget for a Gtk.Window.Gtk_Window. When setting (rather than unsetting) the default widget it's generally easier to call Gtk.Widget.Grab_Default on the widget. Before making a widget the default widget, you must call Gtk.Widget.Set_Can_Default on the widget you'd like to make the default.

Parameters
Window
Default_Widget

widget to be the default, or null to unset the default widget for the toplevel

Set_Default_Geometry

procedure Set_Default_Geometry
   (Window : not null access Gtk_Window_Record;
    Width  : Glib.Gint;
    Height : Glib.Gint)

Like Gtk.Window.Set_Default_Size, but Width and Height are interpreted in terms of the base size and increment set with gtk_window_set_geometry_hints. Since: gtk+ 3.0 Deprecated since 3.20, 1

Parameters
Window
Width

width in resize increments, or -1 to unset the default width

Height

height in resize increments, or -1 to unset the default height

Set_Default_Icon

procedure Set_Default_Icon
   (Icon : not null access Gdk.Pixbuf.Gdk_Pixbuf_Record'Class)

Sets an icon to be used as fallback for windows that haven't had Gtk.Window.Set_Icon called on them from a pixbuf. Since: gtk+ 2.4

Parameters
Icon

the icon

Set_Default_Icon_From_File

function Set_Default_Icon_From_File
   (Filename : UTF8_String) return Boolean

Sets an icon to be used as fallback for windows that haven't had Gtk.Window.Set_Icon_List called on them from a file on disk. Warns on failure if Err is null. Since: gtk+ 2.2

Parameters
Filename

location of icon file

Return Value

True if setting the icon succeeded.

Set_Default_Icon_List

procedure Set_Default_Icon_List
   (List : Glib.Object.Object_Simple_List.Glist)

Sets an icon list to be used as fallback for windows that haven't had Gtk.Window.Set_Icon_List called on them to set up a window-specific icon list. This function allows you to set up the icon for all windows in your app at once. See Gtk.Window.Set_Icon_List for more details.

Parameters
List

a list of Gdk.Pixbuf.Gdk_Pixbuf

Set_Default_Icon_Name

procedure Set_Default_Icon_Name (Name : UTF8_String)

Sets an icon to be used as fallback for windows that haven't had Gtk.Window.Set_Icon_List called on them from a named themed icon, see Gtk.Window.Set_Icon_Name. Since: gtk+ 2.6

Parameters
Name

the name of the themed icon

Set_Default_Size

procedure Set_Default_Size
   (Window : not null access Gtk_Window_Record;
    Width  : Glib.Gint;
    Height : Glib.Gint)

Sets the default size of a window. If the window's "natural" size (its size request) is larger than the default, the default will be ignored. More generally, if the default size does not obey the geometry hints for the window (gtk_window_set_geometry_hints can be used to set these explicitly), the default size will be clamped to the nearest permitted size. Unlike Gtk.Widget.Set_Size_Request, which sets a size request for a widget and thus would keep users from shrinking the window, this function only sets the initial size, just as if the user had resized the window themselves. Users can still shrink the window again as they normally would. Setting a default size of -1 means to use the "natural" default size (the size request of the window). For more control over a window's initial size and how resizing works, investigate Gtk.Window.Set_Geometry_Hints. For some uses, Gtk.Window.Resize is a more appropriate function. Gtk.Window.Resize changes the current size of the window, rather than the size to be used on initial display. Gtk.Window.Resize always affects the window itself, not the geometry widget. The default size of a window only affects the first time a window is shown; if a window is hidden and re-shown, it will remember the size it had prior to hiding, rather than using the default size. Windows can't actually be 0x0 in size, they must be at least 1x1, but passing 0 for Width and Height is OK, resulting in a 1x1 default size. If you use this function to reestablish a previously saved window size, note that the appropriate size to save is the one returned by Gtk.Window.Get_Size. Using the window allocation directly will not work in all circumstances and can lead to growing or shrinking windows.

Parameters
Window
Width

width in pixels, or -1 to unset the default width

Height

height in pixels, or -1 to unset the default height

Set_Deletable

procedure Set_Deletable
   (Window  : not null access Gtk_Window_Record;
    Setting : Boolean)

By default, windows have a close button in the window frame. Some [window managers][gtk-X11-arch] allow GTK+ to disable this button. If you set the deletable property to False using this function, GTK+ will do its best to convince the window manager not to show a close button. Depending on the system, this function may not have any effect when called on a window that is already visible, so you should call it before calling Gtk.Widget.Show. On Windows, this function always works, since there's no window manager policy involved. Since: gtk+ 2.10

Parameters
Window
Setting

True to decorate the window as deletable

Set_Destroy_With_Parent

procedure Set_Destroy_With_Parent
   (Window  : not null access Gtk_Window_Record;
    Setting : Boolean)

If Setting is True, then destroying the transient parent of Window will also destroy Window itself. This is useful for dialogs that shouldn't persist beyond the lifetime of the main window they're associated with, for example.

Parameters
Window
Setting

whether to destroy Window with its transient parent

Set_Focus

procedure Set_Focus
   (Window : not null access Gtk_Window_Record;
    Focus  : access Gtk.Widget.Gtk_Widget_Record'Class)

If Focus is not the current focus widget, and is focusable, sets it as the focus widget for the window. If Focus is null, unsets the focus widget for this window. To set the focus to a particular widget in the toplevel, it is usually more convenient to use Gtk.Widget.Grab_Focus instead of this function.

Parameters
Window
Focus

widget to be the new focus widget, or null to unset any focus widget for the toplevel window.

Set_Focus_On_Map

procedure Set_Focus_On_Map
   (Window  : not null access Gtk_Window_Record;
    Setting : Boolean)

Windows may set a hint asking the desktop environment not to receive the input focus when the window is mapped. This function sets this hint. Since: gtk+ 2.6

Parameters
Window
Setting

True to let this window receive input focus on map

Set_Focus_Visible

procedure Set_Focus_Visible
   (Window  : not null access Gtk_Window_Record;
    Setting : Boolean)

Sets the Gtk.Window.Gtk_Window:focus-visible property. Since: gtk+ 3.2

Parameters
Window
Setting

the new value

Set_Geometry_Hints

procedure Set_Geometry_Hints
   (Window          : not null access Gtk_Window_Record;
    Geometry_Widget : access Gtk.Widget.Gtk_Widget_Record'Class;
    Geometry        : Gdk.Window.Gdk_Geometry;
    Geom_Mask       : Gdk.Window.Gdk_Window_Hints)

This function sets up hints about how a window can be resized by the user. You can set a minimum and maximum size; allowed resize increments (e.g. for xterm, you can only resize by the size of a character); aspect ratios; and more. See the Gdk.Window.Gdk_Geometry struct.

Parameters
Window
Geometry_Widget

widget the geometry hints used to be applied to or null. Since 3.20 this argument is ignored and GTK behaves as if null was set.

Geometry

struct containing geometry information or null

Geom_Mask

mask indicating which struct fields should be paid attention to

Set_Gravity

procedure Set_Gravity
   (Window  : not null access Gtk_Window_Record;
    Gravity : Gdk.Window.Gdk_Gravity)

Window gravity defines the meaning of coordinates passed to Gtk.Window.Move. See Gtk.Window.Move and Gdk.Window.Gdk_Gravity for more details. The default window gravity is GDK_GRAVITY_NORTH_WEST which will typically "do what you mean."

Parameters
Window
Gravity

window gravity

Set_Has_Resize_Grip

procedure Set_Has_Resize_Grip
   (Window : not null access Gtk_Window_Record;
    Value  : Boolean)

Sets whether Window has a corner resize grip. Note that the resize grip is only shown if the window is actually resizable and not maximized. Use Gtk.Window.Resize_Grip_Is_Visible to find out if the resize grip is currently shown. Since: gtk+ 3.0 Deprecated since 3.14, 1

Parameters
Window
Value

True to allow a resize grip

Set_Has_User_Ref_Count

procedure Set_Has_User_Ref_Count
   (Window  : not null access Gtk_Window_Record;
    Setting : Boolean)

Tells GTK+ whether to drop its extra reference to the window when Gtk.Widget.Destroy is called. This function is only exported for the benefit of language bindings which may need to keep the window alive until their wrapper object is garbage collected. There is no justification for ever calling this function in an application. Since: gtk+ 3.0

Parameters
Window
Setting

the new value

Set_Hide_Titlebar_When_Maximized

procedure Set_Hide_Titlebar_When_Maximized
   (Window  : not null access Gtk_Window_Record;
    Setting : Boolean)

If Setting is True, then Window will request that it's titlebar should be hidden when maximized. This is useful for windows that don't convey any information other than the application name in the titlebar, to put the available screen space to better use. If the underlying window system does not support the request, the setting will not have any effect. Note that custom titlebars set with Gtk.Window.Set_Titlebar are not affected by this. The application is in full control of their content and visibility anyway. Since: gtk+ 3.4

Parameters
Window
Setting

whether to hide the titlebar when Window is maximized

Set_Icon

procedure Set_Icon
   (Window : not null access Gtk_Window_Record;
    Icon   : access Gdk.Pixbuf.Gdk_Pixbuf_Record'Class)

Sets up the icon representing a Gtk.Window.Gtk_Window. This icon is used when the window is minimized (also known as iconified). Some window managers or desktop environments may also place it in the window frame, or display it in other contexts. On others, the icon is not used at all, so your mileage may vary. The icon should be provided in whatever size it was naturally drawn; that is, don't scale the image before passing it to GTK+. Scaling is postponed until the last minute, when the desired final size is known, to allow best quality. If you have your icon hand-drawn in multiple sizes, use Gtk.Window.Set_Icon_List. Then the best size will be used. This function is equivalent to calling Gtk.Window.Set_Icon_List with a 1-element list. See also Gtk.Window.Set_Default_Icon_List to set the icon for all windows in your application in one go.

Parameters
Window
Icon

icon image, or null

Set_Icon_From_File

function Set_Icon_From_File
   (Window   : not null access Gtk_Window_Record;
    Filename : UTF8_String) return Boolean

Sets the icon for Window. Warns on failure if Err is null. This function is equivalent to calling Gtk.Window.Set_Icon with a pixbuf created by loading the image from Filename. Since: gtk+ 2.2

Parameters
Window
Filename

location of icon file

Return Value

True if setting the icon succeeded.

Set_Icon_List

procedure Set_Icon_List
   (Window : not null access Gtk_Window_Record;
    List   : Glib.Object.Object_Simple_List.Glist)

Sets up the icon representing a Gtk.Window.Gtk_Window. The icon is used when the window is minimized (also known as iconified). Some window managers or desktop environments may also place it in the window frame, or display it in other contexts. On others, the icon is not used at all, so your mileage may vary. Gtk.Window.Set_Icon_List allows you to pass in the same icon in several hand-drawn sizes. The list should contain the natural sizes your icon is available in; that is, don't scale the image before passing it to GTK+. Scaling is postponed until the last minute, when the desired final size is known, to allow best quality. By passing several sizes, you may improve the final image quality of the icon, by reducing or eliminating automatic image scaling. Recommended sizes to provide: 16x16, 32x32, 48x48 at minimum, and larger images (64x64, 128x128) if you have them. See also Gtk.Window.Set_Default_Icon_List to set the icon for all windows in your application in one go. Note that transient windows (those who have been set transient for another window using Gtk.Window.Set_Transient_For) will inherit their icon from their transient parent. So there's no need to explicitly set the icon on transient windows.

Parameters
Window
List

list of Gdk.Pixbuf.Gdk_Pixbuf

Set_Icon_Name

procedure Set_Icon_Name
   (Window : not null access Gtk_Window_Record;
    Name   : UTF8_String := "")

Sets the icon for the window from a named themed icon. See the docs for Gtk.Icon_Theme.Gtk_Icon_Theme for more details. On some platforms, the window icon is not used at all. Note that this has nothing to do with the WM_ICON_NAME property which is mentioned in the ICCCM. Since: gtk+ 2.6

Parameters
Window
Name

the name of the themed icon

Set_Interactive_Debugging

procedure Set_Interactive_Debugging (Enable : Boolean)

Opens or closes the [interactive debugger][interactive-debugging], which offers access to the widget hierarchy of the application and to useful debugging tools. Since: gtk+ 3.14

Parameters
Enable

True to enable interactive debugging

Set_Keep_Above

procedure Set_Keep_Above
   (Window  : not null access Gtk_Window_Record;
    Setting : Boolean)

Asks to keep Window above, so that it stays on top. Note that you shouldn't assume the window is definitely above afterward, because other entities (e.g. the user or [window manager][gtk-X11-arch]) could not keep it above, and not all window managers support keeping windows above. But normally the window will end kept above. Just don't write code that crashes if not. It's permitted to call this function before showing a window, in which case the window will be kept above when it appears onscreen initially. You can track the above state via the "window-state-event" signal on Gtk.Widget.Gtk_Widget. Note that, according to the Extended Window Manager Hints Specification, the above state is mainly meant for user preferences and should not be used by applications e.g. for drawing attention to their dialogs. Since: gtk+ 2.4

Parameters
Window
Setting

whether to keep Window above other windows

Set_Keep_Below

procedure Set_Keep_Below
   (Window  : not null access Gtk_Window_Record;
    Setting : Boolean)

Asks to keep Window below, so that it stays in bottom. Note that you shouldn't assume the window is definitely below afterward, because other entities (e.g. the user or [window manager][gtk-X11-arch]) could not keep it below, and not all window managers support putting windows below. But normally the window will be kept below. Just don't write code that crashes if not. It's permitted to call this function before showing a window, in which case the window will be kept below when it appears onscreen initially. You can track the below state via the "window-state-event" signal on Gtk.Widget.Gtk_Widget. Note that, according to the Extended Window Manager Hints Specification, the above state is mainly meant for user preferences and should not be used by applications e.g. for drawing attention to their dialogs. Since: gtk+ 2.4

Parameters
Window
Setting

whether to keep Window below other windows

Set_Mnemonic_Modifier

procedure Set_Mnemonic_Modifier
   (Window   : not null access Gtk_Window_Record;
    Modifier : Gdk.Types.Gdk_Modifier_Type)

Sets the mnemonic modifier for this window.

Parameters
Window
Modifier

the modifier mask used to activate mnemonics on this window.

Set_Mnemonics_Visible

procedure Set_Mnemonics_Visible
   (Window  : not null access Gtk_Window_Record;
    Setting : Boolean)

Sets the Gtk.Window.Gtk_Window:mnemonics-visible property. Since: gtk+ 2.20

Parameters
Window
Setting

the new value

Set_Modal

procedure Set_Modal
   (Window : not null access Gtk_Window_Record;
    Modal  : Boolean := True)

Sets a window modal or non-modal. Modal windows prevent interaction with other windows in the same application. To keep modal dialogs on top of main application windows, use Gtk.Window.Set_Transient_For to make the dialog transient for the parent; most [window managers][gtk-X11-arch] will then disallow lowering the dialog below the parent.

Parameters
Window
Modal

whether the window is modal

Set_Position

procedure Set_Position
   (Window   : not null access Gtk_Window_Record;
    Position : Gtk.Enums.Gtk_Window_Position)

Sets a position constraint for this window. If the old or new constraint is Gtk.Enums.Win_Pos_Center_Always, this will also cause the window to be repositioned to satisfy the new constraint.

Parameters
Window
Position

a position constraint.

Set_Resizable

procedure Set_Resizable
   (Window    : not null access Gtk_Window_Record;
    Resizable : Boolean)

Sets whether the user can resize a window. Windows are user resizable by default.

Parameters
Window
Resizable

True if the user can resize this window

Set_Role

procedure Set_Role
   (Window : not null access Gtk_Window_Record;
    Role   : UTF8_String)

This function is only useful on X11, not with other GTK+ targets. In combination with the window title, the window role allows a [window manager][gtk-X11-arch] to identify "the same" window when an application is restarted. So for example you might set the "toolbox" role on your app's toolbox window, so that when the user restarts their session, the window manager can put the toolbox back in the same place. If a window already has a unique title, you don't need to set the role, since the WM can use the title to identify the window when restoring the session.

Parameters
Window
Role

unique identifier for the window to be used when restoring a session

Set_Screen

procedure Set_Screen
   (Window : not null access Gtk_Window_Record;
    Screen : not null access Gdk.Screen.Gdk_Screen_Record'Class)

Sets the Gdk.Screen.Gdk_Screen where the Window is displayed; if the window is already mapped, it will be unmapped, and then remapped on the new screen. Since: gtk+ 2.2

Parameters
Window
Screen

a Gdk.Screen.Gdk_Screen.

Set_Skip_Pager_Hint

procedure Set_Skip_Pager_Hint
   (Window  : not null access Gtk_Window_Record;
    Setting : Boolean)

Windows may set a hint asking the desktop environment not to display the window in the pager. This function sets this hint. (A "pager" is any desktop navigation tool such as a workspace switcher that displays a thumbnail representation of the windows on the screen.) Since: gtk+ 2.2

Parameters
Window
Setting

True to keep this window from appearing in the pager

Set_Skip_Taskbar_Hint

procedure Set_Skip_Taskbar_Hint
   (Window  : not null access Gtk_Window_Record;
    Setting : Boolean)

Windows may set a hint asking the desktop environment not to display the window in the task bar. This function sets this hint. Since: gtk+ 2.2

Parameters
Window
Setting

True to keep this window from appearing in the task bar

Set_Startup_Id

procedure Set_Startup_Id
   (Window     : not null access Gtk_Window_Record;
    Startup_Id : UTF8_String)

Startup notification identifiers are used by desktop environment to track application startup, to provide user feedback and other features. This function changes the corresponding property on the underlying GdkWindow. Normally, startup identifier is managed automatically and you should only use this function in special cases like transferring focus from other processes. You should use this function before calling Gtk.Window.Present or any equivalent function generating a window map event. This function is only useful on X11, not with other GTK+ targets. Since: gtk+ 2.12

Parameters
Window
Startup_Id

a string with startup-notification identifier

Set_Title

procedure Set_Title
   (Window : not null access Gtk_Window_Record;
    Title  : UTF8_String)

Sets the title of the Gtk.Window.Gtk_Window. The title of a window will be displayed in its title bar; on the X Window System, the title bar is rendered by the [window manager][gtk-X11-arch], so exactly how the title appears to users may vary according to a user's exact configuration. The title should help a user distinguish this window from other windows they may have open. A good title might include the application name and current document filename, for example.

Parameters
Window
Title

title of the window

Set_Titlebar

procedure Set_Titlebar
   (Window   : not null access Gtk_Window_Record;
    Titlebar : access Gtk.Widget.Gtk_Widget_Record'Class)

Sets a custom titlebar for Window. A typical widget used here is Gtk.Header_Bar.Gtk_Header_Bar, as it provides various features expected of a titlebar while allowing the addition of child widgets to it. If you set a custom titlebar, GTK+ will do its best to convince the window manager not to put its own titlebar on the window. Depending on the system, this function may not work for a window that is already visible, so you set the titlebar before calling Gtk.Widget.Show. Since: gtk+ 3.10

Parameters
Window
Titlebar

the widget to use as titlebar

Set_Transient_For

procedure Set_Transient_For
   (Window : not null access Gtk_Window_Record;
    Parent : access Gtk_Window_Record'Class)

Dialog windows should be set transient for the main application window they were spawned from. This allows [window managers][gtk-X11-arch] to e.g. keep the dialog on top of the main window, or center the dialog over the main window. gtk_dialog_new_with_buttons and other convenience functions in GTK+ will sometimes call Gtk.Window.Set_Transient_For on your behalf. Passing null for Parent unsets the current transient window. On Wayland, this function can also be used to attach a new GTK_WINDOW_POPUP to a GTK_WINDOW_TOPLEVEL parent already mapped on screen so that the GTK_WINDOW_POPUP will be created as a subsurface-based window GDK_WINDOW_SUBSURFACE which can be positioned at will relatively to the GTK_WINDOW_TOPLEVEL surface. On Windows, this function puts the child window on top of the parent, much as the window manager would have done on X.

Parameters
Window
Parent

parent window, or null

Set_Type_Hint

procedure Set_Type_Hint
   (Window : not null access Gtk_Window_Record;
    Hint   : Gdk.Window.Gdk_Window_Type_Hint)

By setting the type hint for the window, you allow the window manager to decorate and handle the window in a way which is suitable to the function of the window in your application. This function should be called before the window becomes visible. gtk_dialog_new_with_buttons and other convenience functions in GTK+ will sometimes call Gtk.Window.Set_Type_Hint on your behalf.

Parameters
Window
Hint

the window type

Set_Urgency_Hint

procedure Set_Urgency_Hint
   (Window  : not null access Gtk_Window_Record;
    Setting : Boolean)

Windows may set a hint asking the desktop environment to draw the users attention to the window. This function sets this hint. Since: gtk+ 2.8

Parameters
Window
Setting

True to mark this window as urgent

Set_Wmclass

procedure Set_Wmclass
   (Window        : not null access Gtk_Window_Record;
    Wmclass_Name  : UTF8_String;
    Wmclass_Class : UTF8_String)

Don't use this function. It sets the X Window System "class" and "name" hints for a window. According to the ICCCM, you should always set these to the same value for all windows in an application, and GTK+ sets them to that value by default, so calling this function is sort of pointless. However, you may want to call Gtk.Window.Set_Role on each window in your application, for the benefit of the session manager. Setting the role allows the window manager to restore window positions when loading a saved session. Deprecated since 3.22, 1

Parameters
Window
Wmclass_Name

window name hint

Wmclass_Class

window class hint

Signal_Activate_Default

Signal_Activate_Default : constant Glib.Signal_Name := "activate-default";

The ::activate-default signal is a [keybinding signal][GtkBindingSignal] which gets emitted when the user activates the default widget of Window.

Signal_Activate_Focus

Signal_Activate_Focus : constant Glib.Signal_Name := "activate-focus";

The ::activate-focus signal is a [keybinding signal][GtkBindingSignal] which gets emitted when the user activates the currently focused widget of Window.

Signal_Enable_Debugging

Signal_Enable_Debugging : constant Glib.Signal_Name := "enable-debugging";

The ::enable-debugging signal is a [keybinding signal][GtkBindingSignal] which gets emitted when the user enables or disables interactive debugging. When Toggle is True, interactive debugging is toggled on or off, when it is False, the debugger will be pointed at the widget under the pointer.

The default bindings for this signal are Ctrl-Shift-I and Ctrl-Shift-D.

Callback parameters: -- @param Toggle toggle the debugger

Signal_Keys_Changed

Signal_Keys_Changed : constant Glib.Signal_Name := "keys-changed";

The ::keys-changed signal gets emitted when the set of accelerators or mnemonics that are associated with Window changes.

Signal_Set_Focus

Signal_Set_Focus : constant Glib.Signal_Name := "set-focus";

This signal is emitted whenever the currently focused widget in this window changes.

Skip_Pager_Hint_Property

Skip_Pager_Hint_Property : constant Glib.Properties.Property_Boolean;

Skip_Taskbar_Hint_Property

Skip_Taskbar_Hint_Property : constant Glib.Properties.Property_Boolean;

Startup_Id_Property

Startup_Id_Property : constant Glib.Properties.Property_String;

Flags: write The :startup-id is a write-only property for setting window's startup notification identifier. See Gtk.Window.Set_Startup_Id for more details.

Stick

procedure Stick (Window : not null access Gtk_Window_Record)

Asks to stick Window, which means that it will appear on all user desktops. Note that you shouldn't assume the window is definitely stuck afterward, because other entities (e.g. the user or [window manager][gtk-X11-arch] could unstick it again, and some window managers do not support sticking windows. But normally the window will end up stuck. Just don't write code that crashes if not. It's permitted to call this function before showing a window. You can track stickiness via the "window-state-event" signal on Gtk.Widget.Gtk_Widget.

Parameters
Window

The_Type_Property

The_Type_Property : constant Gtk.Enums.Property_Gtk_Window_Type;

Title_Property

Title_Property : constant Glib.Properties.Property_String;

Transient_For_Property

Transient_For_Property : constant Glib.Properties.Property_Object;

Type: Gtk_Window The transient parent of the window. See Gtk.Window.Set_Transient_For for more details about transient windows.

Type_Hint_Property

Type_Hint_Property : constant Gdk.Window.Property_Gdk_Window_Type_Hint;

Type: Gdk.Window.Gdk_Window_Type_Hint

Unfullscreen

procedure Unfullscreen (Window : not null access Gtk_Window_Record)

Asks to toggle off the fullscreen state for Window. Note that you shouldn't assume the window is definitely not full screen afterward, because other entities (e.g. the user or [window manager][gtk-X11-arch]) could fullscreen it again, and not all window managers honor requests to unfullscreen windows. But normally the window will end up restored to its normal state. Just don't write code that crashes if not. You can track the fullscreen state via the "window-state-event" signal on Gtk.Widget.Gtk_Widget. Since: gtk+ 2.2

Parameters
Window

Unmaximize

procedure Unmaximize (Window : not null access Gtk_Window_Record)

Asks to unmaximize Window. Note that you shouldn't assume the window is definitely unmaximized afterward, because other entities (e.g. the user or [window manager][gtk-X11-arch]) could maximize it again, and not all window managers honor requests to unmaximize. But normally the window will end up unmaximized. Just don't write code that crashes if not. You can track maximization via the "window-state-event" signal on Gtk.Widget.Gtk_Widget.

Parameters
Window

Unstick

procedure Unstick (Window : not null access Gtk_Window_Record)

Asks to unstick Window, which means that it will appear on only one of the user's desktops. Note that you shouldn't assume the window is definitely unstuck afterward, because other entities (e.g. the user or [window manager][gtk-X11-arch]) could stick it again. But normally the window will end up stuck. Just don't write code that crashes if not. You can track stickiness via the "window-state-event" signal on Gtk.Widget.Gtk_Widget.

Parameters
Window

Urgency_Hint_Property

Urgency_Hint_Property : constant Glib.Properties.Property_Boolean;

Window_Position_Property

Window_Position_Property : constant Gtk.Enums.Property_Gtk_Window_Position;

Tagged Types

Access Types

Constants

Subprograms

Generic Instantiations