gtkwindow.inc 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551
  1. // included by gtk2.pas
  2. {$IFDEF read_forward_definitions}
  3. {$ENDIF read_forward_definitions}
  4. //------------------------------------------------------------------------------
  5. {$IFDEF read_interface_types}
  6. // internal type:
  7. PGtkWindowGeometryInfo = pointer;
  8. PGtkWindowGroup = ^TGtkWindowGroup;
  9. { The following flags are initially TRUE (before a window is mapped).
  10. They cause us to compute a configure request that involves
  11. default-only parameters. Once mapped, we set them to FALSE.
  12. Then we set them to TRUE again on unmap (for position)
  13. and on unrealize (for size).
  14. }
  15. { GtkWindowType }
  16. { gtk_window_iconify() called before realization }
  17. { GdkWindowTypeHint }
  18. { GdkGravity }
  19. PGtkWindow = ^TGtkWindow;
  20. TGtkWindow = record
  21. bin : TGtkBin;
  22. title : Pgchar;
  23. wmclass_name : Pgchar;
  24. wmclass_class : Pgchar;
  25. wm_role : Pgchar;
  26. focus_widget : PGtkWidget;
  27. default_widget : PGtkWidget;
  28. transient_parent : PGtkWindow;
  29. geometry_info : PGtkWindowGeometryInfo;
  30. frame : PGdkWindow;
  31. group : PGtkWindowGroup;
  32. configure_request_count : guint16;
  33. flag0 : longint;
  34. frame_left : guint;
  35. frame_top : guint;
  36. frame_right : guint;
  37. frame_bottom : guint;
  38. keys_changed_handler : guint;
  39. mnemonic_modifier : TGdkModifierType;
  40. screen : PGdkScreen;
  41. end;
  42. { G_SIGNAL_ACTION signals for keybindings }
  43. { Padding for future expansion }
  44. PGtkWindowClass = ^TGtkWindowClass;
  45. TGtkWindowClass = record
  46. parent_class : TGtkBinClass;
  47. set_focus : procedure (window:PGtkWindow; focus:PGtkWidget); cdecl;
  48. frame_event : function (window:PGtkWindow; event:PGdkEvent):gboolean; cdecl;
  49. activate_focus : procedure (window:PGtkWindow); cdecl;
  50. activate_default : procedure (window:PGtkWindow); cdecl;
  51. move_focus : procedure (window:PGtkWindow; direction:TGtkDirectionType); cdecl;
  52. keys_changed : procedure (window:PGtkWindow); cdecl;
  53. _gtk_reserved1 : procedure ; cdecl;
  54. _gtk_reserved2 : procedure ; cdecl;
  55. _gtk_reserved3 : procedure ; cdecl;
  56. _gtk_reserved4 : procedure ; cdecl;
  57. end;
  58. TGtkWindowGroup = record
  59. parent_instance : TGObject;
  60. grabs : PGSList;
  61. end;
  62. { Padding for future expansion }
  63. PGtkWindowGroupClass = ^TGtkWindowGroupClass;
  64. TGtkWindowGroupClass = record
  65. parent_class : TGObjectClass;
  66. _gtk_reserved1 : procedure ; cdecl;
  67. _gtk_reserved2 : procedure ; cdecl;
  68. _gtk_reserved3 : procedure ; cdecl;
  69. _gtk_reserved4 : procedure ; cdecl;
  70. end;
  71. TGtkWindowKeysForeachFunc = procedure (window:PGtkWindow; keyval:guint; modifiers:TGdkModifierType; is_mnemonic:gboolean; data:gpointer); cdecl;
  72. {$ENDIF read_interface_types}
  73. //------------------------------------------------------------------------------
  74. {$IFDEF read_interface_rest}
  75. const
  76. bm_TGtkWindow_allow_shrink = $1;
  77. bp_TGtkWindow_allow_shrink = 0;
  78. bm_TGtkWindow_allow_grow = $2;
  79. bp_TGtkWindow_allow_grow = 1;
  80. bm_TGtkWindow_configure_notify_received = $4;
  81. bp_TGtkWindow_configure_notify_received = 2;
  82. bm_TGtkWindow_need_default_position = $8;
  83. bp_TGtkWindow_need_default_position = 3;
  84. bm_TGtkWindow_need_default_size = $10;
  85. bp_TGtkWindow_need_default_size = 4;
  86. bm_TGtkWindow_position = $E0;
  87. bp_TGtkWindow_position = 5;
  88. bm_TGtkWindow_type = $F00;
  89. bp_TGtkWindow_type = 8;
  90. bm_TGtkWindow_has_user_ref_count = $1000;
  91. bp_TGtkWindow_has_user_ref_count = 12;
  92. bm_TGtkWindow_has_focus = $2000;
  93. bp_TGtkWindow_has_focus = 13;
  94. bm_TGtkWindow_modal = $4000;
  95. bp_TGtkWindow_modal = 14;
  96. bm_TGtkWindow_destroy_with_parent = $8000;
  97. bp_TGtkWindow_destroy_with_parent = 15;
  98. bm_TGtkWindow_has_frame = $10000;
  99. bp_TGtkWindow_has_frame = 16;
  100. bm_TGtkWindow_iconify_initially = $20000;
  101. bp_TGtkWindow_iconify_initially = 17;
  102. bm_TGtkWindow_stick_initially = $40000;
  103. bp_TGtkWindow_stick_initially = 18;
  104. bm_TGtkWindow_maximize_initially = $80000;
  105. bp_TGtkWindow_maximize_initially = 19;
  106. bm_TGtkWindow_decorated = $100000;
  107. bp_TGtkWindow_decorated = 20;
  108. bm_TGtkWindow_type_hint = $E00000;
  109. bp_TGtkWindow_type_hint = 21;
  110. bm_TGtkWindow_gravity = $1F000000;
  111. bp_TGtkWindow_gravity = 24;
  112. function GTK_TYPE_WINDOW : GType;
  113. function GTK_WINDOW(obj: pointer) : PGtkWindow;
  114. function GTK_WINDOW_CLASS(klass: pointer) : PGtkWindowClass;
  115. function GTK_IS_WINDOW(obj: pointer) : boolean;
  116. function GTK_IS_WINDOW_CLASS(klass: pointer) : boolean;
  117. function GTK_WINDOW_GET_CLASS(obj: pointer) : PGtkWindowClass;
  118. function allow_shrink(var a : TGtkWindow) : guint;
  119. procedure set_allow_shrink(var a : TGtkWindow; __allow_shrink : guint);
  120. function allow_grow(var a : TGtkWindow) : guint;
  121. procedure set_allow_grow(var a : TGtkWindow; __allow_grow : guint);
  122. function configure_notify_received(var a : TGtkWindow) : guint;
  123. procedure set_configure_notify_received(var a : TGtkWindow; __configure_notify_received : guint);
  124. function need_default_position(var a : TGtkWindow) : guint;
  125. procedure set_need_default_position(var a : TGtkWindow; __need_default_position : guint);
  126. function need_default_size(var a : TGtkWindow) : guint;
  127. procedure set_need_default_size(var a : TGtkWindow; __need_default_size : guint);
  128. function position(var a : TGtkWindow) : guint;
  129. procedure set_position(var a : TGtkWindow; __position : guint);
  130. function get_type(var a : TGtkWindow) : guint; overload;
  131. procedure set_type(var a : TGtkWindow; __type : guint); overload;
  132. function has_user_ref_count(var a : TGtkWindow) : guint;
  133. procedure set_has_user_ref_count(var a : TGtkWindow; __has_user_ref_count : guint);
  134. function has_focus(var a : TGtkWindow) : guint;
  135. procedure set_has_focus(var a : TGtkWindow; __has_focus : guint);
  136. function modal(var a : TGtkWindow) : guint;
  137. procedure set_modal(var a : TGtkWindow; __modal : guint);
  138. function destroy_with_parent(var a : TGtkWindow) : guint;
  139. procedure set_destroy_with_parent(var a : TGtkWindow; __destroy_with_parent : guint);
  140. function has_frame(var a : TGtkWindow) : guint; overload;
  141. procedure set_has_frame(var a : TGtkWindow; __has_frame : guint); overload;
  142. function iconify_initially(var a : TGtkWindow) : guint;
  143. procedure set_iconify_initially(var a : TGtkWindow; __iconify_initially : guint);
  144. function stick_initially(var a : TGtkWindow) : guint;
  145. procedure set_stick_initially(var a : TGtkWindow; __stick_initially : guint);
  146. function maximize_initially(var a : TGtkWindow) : guint;
  147. procedure set_maximize_initially(var a : TGtkWindow; __maximize_initially : guint);
  148. function decorated(var a : TGtkWindow) : guint;
  149. procedure set_decorated(var a : TGtkWindow; __decorated : guint);
  150. function type_hint(var a : TGtkWindow) : guint;
  151. procedure set_type_hint(var a : TGtkWindow; __type_hint : guint);
  152. function gravity(var a : TGtkWindow) : guint;
  153. procedure set_gravity(var a : TGtkWindow; __gravity : guint);
  154. function GTK_TYPE_WINDOW_GROUP : GType;
  155. function GTK_WINDOW_GROUP(anObject: pointer) : PGtkWindowGroup;
  156. function GTK_WINDOW_GROUP_CLASS(klass: pointer) : PGtkWindowGroupClass;
  157. function GTK_IS_WINDOW_GROUP(anObject: pointer) : boolean;
  158. function GTK_IS_WINDOW_GROUP_CLASS(klass: pointer) : boolean;
  159. function GTK_WINDOW_GROUP_GET_CLASS(obj: pointer) : PGtkWindowGroupClass;
  160. function gtk_window_get_type:TGtkType; cdecl; external gtklib;
  161. function gtk_window_new(_type:TGtkWindowType):PGtkWidget; cdecl; external gtklib;
  162. procedure gtk_window_set_title(window:PGtkWindow; title:Pgchar); cdecl; external gtklib;
  163. function gtk_window_get_title(window:PGtkWindow):Pgchar; cdecl; external gtklib;
  164. procedure gtk_window_set_wmclass(window:PGtkWindow; wmclass_name:Pgchar; wmclass_class:Pgchar); cdecl; external gtklib;
  165. procedure gtk_window_set_role(window:PGtkWindow; role:Pgchar); cdecl; external gtklib;
  166. function gtk_window_get_role(window:PGtkWindow):Pgchar; cdecl; external gtklib;
  167. procedure gtk_window_add_accel_group(window:PGtkWindow; accel_group:PGtkAccelGroup); cdecl; external gtklib;
  168. procedure gtk_window_remove_accel_group(window:PGtkWindow; accel_group:PGtkAccelGroup); cdecl; external gtklib;
  169. procedure gtk_window_set_position(window:PGtkWindow; position:TGtkWindowPosition); cdecl; external gtklib;
  170. function gtk_window_activate_focus(window:PGtkWindow):gboolean; cdecl; external gtklib;
  171. procedure gtk_window_set_focus(window:PGtkWindow; focus:PGtkWidget); cdecl; external gtklib;
  172. function gtk_window_get_focus(window:PGtkWindow):PGtkWidget; cdecl; external gtklib;
  173. procedure gtk_window_set_default(window:PGtkWindow; default_widget:PGtkWidget); cdecl; external gtklib;
  174. function gtk_window_activate_default(window:PGtkWindow):gboolean; cdecl; external gtklib;
  175. procedure gtk_window_set_transient_for(window:PGtkWindow; parent:PGtkWindow); cdecl; external gtklib;
  176. function gtk_window_get_transient_for(window:PGtkWindow):PGtkWindow; cdecl; external gtklib;
  177. procedure gtk_window_set_type_hint(window:PGtkWindow; hint:TGdkWindowTypeHint); cdecl; external gtklib;
  178. function gtk_window_get_type_hint(window:PGtkWindow):TGdkWindowTypeHint; cdecl; external gtklib;
  179. procedure gtk_window_set_destroy_with_parent(window:PGtkWindow; setting:gboolean); cdecl; external gtklib;
  180. function gtk_window_get_destroy_with_parent(window:PGtkWindow):gboolean; cdecl; external gtklib;
  181. procedure gtk_window_set_resizable(window:PGtkWindow; resizable:gboolean); cdecl; external gtklib;
  182. function gtk_window_get_resizable(window:PGtkWindow):gboolean; cdecl; external gtklib;
  183. procedure gtk_window_set_gravity(window:PGtkWindow; gravity:TGdkGravity); cdecl; external gtklib;
  184. function gtk_window_get_gravity(window:PGtkWindow):TGdkGravity; cdecl; external gtklib;
  185. procedure gtk_window_set_geometry_hints(window:PGtkWindow; geometry_widget:PGtkWidget; geometry:PGdkGeometry; geom_mask:TGdkWindowHints); cdecl; external gtklib;
  186. procedure gtk_window_set_screen(window:PGtkWindow; screen:PGdkScreen); cdecl; external gtklib;
  187. function gtk_window_get_screen(window:PGtkWindow):PGdkScreen; cdecl; external gtklib;
  188. { gtk_window_set_has_frame () must be called before realizing the window_ }
  189. procedure gtk_window_set_has_frame(window:PGtkWindow; setting:gboolean); cdecl; external gtklib;
  190. function gtk_window_get_has_frame(window:PGtkWindow):gboolean; cdecl; external gtklib;
  191. procedure gtk_window_set_frame_dimensions(window:PGtkWindow; left:gint; top:gint; right:gint; bottom:gint); cdecl; external gtklib;
  192. procedure gtk_window_get_frame_dimensions(window:PGtkWindow; left:Pgint; top:Pgint; right:Pgint; bottom:Pgint); cdecl; external gtklib;
  193. procedure gtk_window_set_decorated(window:PGtkWindow; setting:gboolean); cdecl; external gtklib;
  194. function gtk_window_get_decorated(window:PGtkWindow):gboolean; cdecl; external gtklib;
  195. procedure gtk_window_set_icon_list(window:PGtkWindow; list:PGList); cdecl; external gtklib;
  196. function gtk_window_get_icon_list(window:PGtkWindow):PGList; cdecl; external gtklib;
  197. procedure gtk_window_set_icon(window:PGtkWindow; icon:PGdkPixbuf); cdecl; external gtklib;
  198. function gtk_window_get_icon(window:PGtkWindow):PGdkPixbuf; cdecl; external gtklib;
  199. procedure gtk_window_set_default_icon_list(list:PGList); cdecl; external gtklib;
  200. function gtk_window_get_default_icon_list:PGList; cdecl; external gtklib;
  201. { If window is set modal, input will be grabbed when show and released when hide }
  202. procedure gtk_window_set_modal(window:PGtkWindow; modal:gboolean); cdecl; external gtklib;
  203. function gtk_window_get_modal(window:PGtkWindow):gboolean; cdecl; external gtklib;
  204. function gtk_window_list_toplevels:PGList; cdecl; external gtklib;
  205. procedure gtk_window_add_mnemonic(window:PGtkWindow; keyval:guint; target:PGtkWidget); cdecl; external gtklib;
  206. procedure gtk_window_remove_mnemonic(window:PGtkWindow; keyval:guint; target:PGtkWidget); cdecl; external gtklib;
  207. function gtk_window_mnemonic_activate(window:PGtkWindow; keyval:guint; modifier:TGdkModifierType):gboolean; cdecl; external gtklib;
  208. procedure gtk_window_set_mnemonic_modifier(window:PGtkWindow; modifier:TGdkModifierType); cdecl; external gtklib;
  209. function gtk_window_get_mnemonic_modifier(window:PGtkWindow):TGdkModifierType; cdecl; external gtklib;
  210. procedure gtk_window_present(window:PGtkWindow); cdecl; external gtklib;
  211. procedure gtk_window_iconify(window:PGtkWindow); cdecl; external gtklib;
  212. procedure gtk_window_deiconify(window:PGtkWindow); cdecl; external gtklib;
  213. procedure gtk_window_stick(window:PGtkWindow); cdecl; external gtklib;
  214. procedure gtk_window_unstick(window:PGtkWindow); cdecl; external gtklib;
  215. procedure gtk_window_maximize(window:PGtkWindow); cdecl; external gtklib;
  216. procedure gtk_window_unmaximize(window:PGtkWindow); cdecl; external gtklib;
  217. {$ifdef HasGTK2_2}
  218. procedure gtk_window_fullscreen(window: PGtkWindow); cdecl; external gtklib;
  219. procedure gtk_window_unfullscreen(window: PGtkWindow); cdecl; external gtklib;
  220. procedure gtk_window_set_keep_above(window: PGtkWindow; setting: gboolean); cdecl; external gtklib;
  221. procedure gtk_window_set_keep_below(window: PGtkWindow; setting: gboolean); cdecl; external gtklib;
  222. function gtk_window_get_skip_pager_hint(window:PGtkWindow):gboolean; cdecl; external gtklib;
  223. procedure gtk_window_set_skip_pager_hint(window:PGtkWindow; setting:gboolean); cdecl; external gtklib;
  224. function gtk_window_get_skip_taskbar_hint(window:PGtkWindow):gboolean; cdecl; external gtklib;
  225. procedure gtk_window_set_skip_taskbar_hint(window:PGtkWindow; setting:gboolean); cdecl; external gtklib;
  226. {$endif HasGTK2_2}
  227. procedure gtk_window_begin_resize_drag(window:PGtkWindow; edge:TGdkWindowEdge; button:gint; root_x:gint; root_y:gint;
  228. timestamp:guint32); cdecl; external gtklib;
  229. procedure gtk_window_begin_move_drag(window:PGtkWindow; button:gint; root_x:gint; root_y:gint; timestamp:guint32); cdecl; external gtklib;
  230. {$ifndef GTK_DISABLE_DEPRECATED}
  231. procedure gtk_window_set_policy(window:PGtkWindow; allow_shrink:gint; allow_grow:gint; auto_shrink:gint); cdecl; external gtklib;
  232. procedure gtk_window_position(window:PGtkWindow; position:TGtkWindowPosition);
  233. {$endif}
  234. { GTK_DISABLE_DEPRECATED }
  235. { Set initial default size of the window (does not constrain user
  236. resize operations)
  237. }
  238. procedure gtk_window_set_default_size(window:PGtkWindow; width:gint; height:gint); cdecl; external gtklib;
  239. procedure gtk_window_get_default_size(window:PGtkWindow; width:Pgint; height:Pgint); cdecl; external gtklib;
  240. procedure gtk_window_resize(window:PGtkWindow; width:gint; height:gint); cdecl; external gtklib;
  241. procedure gtk_window_get_size(window:PGtkWindow; width:Pgint; height:Pgint); cdecl; external gtklib;
  242. procedure gtk_window_move(window:PGtkWindow; x:gint; y:gint); cdecl; external gtklib;
  243. procedure gtk_window_get_position(window:PGtkWindow; root_x:Pgint; root_y:Pgint); cdecl; external gtklib;
  244. function gtk_window_parse_geometry(window:PGtkWindow; geometry:Pgchar):gboolean; cdecl; external gtklib;
  245. { Ignore this unless you are writing a GUI builder }
  246. procedure gtk_window_reshow_with_initial_size(window:PGtkWindow); cdecl; external gtklib;
  247. { Window groups
  248. }
  249. function gtk_window_group_get_type:GType; cdecl; external gtklib;
  250. function gtk_window_group_new:PGtkWindowGroup; cdecl; external gtklib;
  251. procedure gtk_window_group_add_window(window_group:PGtkWindowGroup; window:PGtkWindow); cdecl; external gtklib;
  252. procedure gtk_window_group_remove_window(window_group:PGtkWindowGroup; window:PGtkWindow); cdecl; external gtklib;
  253. { --- internal functions --- }
  254. procedure _gtk_window_internal_set_focus(window:PGtkWindow; focus:PGtkWidget); cdecl; external gtklib;
  255. procedure gtk_window_remove_embedded_xid(window:PGtkWindow; xid:guint); cdecl; external gtklib;
  256. procedure gtk_window_add_embedded_xid(window:PGtkWindow; xid:guint); cdecl; external gtklib;
  257. procedure _gtk_window_reposition(window:PGtkWindow; x:gint; y:gint); cdecl; external gtklib;
  258. procedure _gtk_window_constrain_size(window:PGtkWindow; width:gint; height:gint; new_width:Pgint; new_height:Pgint); cdecl; external gtklib;
  259. function _gtk_window_get_group(window:PGtkWindow):PGtkWindowGroup; cdecl; external gtklib;
  260. function _gtk_window_activate_key(window:PGtkWindow; event:PGdkEventKey):gboolean; cdecl; external gtklib;
  261. procedure _gtk_window_keys_foreach(window:PGtkWindow; func:TGtkWindowKeysForeachFunc; func_data:gpointer); cdecl; external gtklib;
  262. { --- internal (GtkAcceleratable) --- }
  263. function _gtk_window_query_nonaccels(window:PGtkWindow; accel_key:guint; accel_mods:TGdkModifierType):gboolean; cdecl; external gtklib;
  264. {$IFDEF HasGTK2_4}
  265. function gtk_window_get_accept_focus(window:PGtkWindow):gboolean; cdecl; external gtklib;
  266. procedure gtk_window_set_accept_focus(window:PGtkWindow; setting:gboolean); cdecl; external gtklib;
  267. function gtk_window_has_toplevel_focus(window: PGtkWindow):gboolean;cdecl; external gtklib;
  268. function gtk_window_is_active(window: PGtkWindow):gboolean; cdecl; external gtklib;
  269. {$ENDIF HasGTK2_4}
  270. {$ENDIF read_interface_rest}
  271. //------------------------------------------------------------------------------
  272. {$IFDEF read_implementation}
  273. function GTK_TYPE_WINDOW : GType;
  274. begin
  275. GTK_TYPE_WINDOW:=gtk_window_get_type;
  276. end;
  277. function GTK_WINDOW(obj: pointer) : PGtkWindow;
  278. begin
  279. GTK_WINDOW:=PGtkWindow(GTK_CHECK_CAST(obj,GTK_TYPE_WINDOW));
  280. end;
  281. function GTK_WINDOW_CLASS(klass: pointer) : PGtkWindowClass;
  282. begin
  283. GTK_WINDOW_CLASS:=PGtkWindowClass(GTK_CHECK_CLASS_CAST(klass,GTK_TYPE_WINDOW));
  284. end;
  285. function GTK_IS_WINDOW(obj: pointer) : boolean;
  286. begin
  287. GTK_IS_WINDOW:=GTK_CHECK_TYPE(obj,GTK_TYPE_WINDOW);
  288. end;
  289. function GTK_IS_WINDOW_CLASS(klass: pointer) : boolean;
  290. begin
  291. GTK_IS_WINDOW_CLASS:=GTK_CHECK_CLASS_TYPE(klass,GTK_TYPE_WINDOW);
  292. end;
  293. function GTK_WINDOW_GET_CLASS(obj: pointer) : PGtkWindowClass;
  294. begin
  295. GTK_WINDOW_GET_CLASS:=PGtkWindowClass(GTK_CHECK_GET_CLASS(obj,GTK_TYPE_WINDOW));
  296. end;
  297. function allow_shrink(var a : TGtkWindow) : guint;
  298. begin
  299. allow_shrink:=(a.flag0 and bm_TGtkWindow_allow_shrink) shr bp_TGtkWindow_allow_shrink;
  300. end;
  301. procedure set_allow_shrink(var a : TGtkWindow; __allow_shrink : guint);
  302. begin
  303. a.flag0:=a.flag0 or ((__allow_shrink shl bp_TGtkWindow_allow_shrink) and bm_TGtkWindow_allow_shrink);
  304. end;
  305. function allow_grow(var a : TGtkWindow) : guint;
  306. begin
  307. allow_grow:=(a.flag0 and bm_TGtkWindow_allow_grow) shr bp_TGtkWindow_allow_grow;
  308. end;
  309. procedure set_allow_grow(var a : TGtkWindow; __allow_grow : guint);
  310. begin
  311. a.flag0:=a.flag0 or ((__allow_grow shl bp_TGtkWindow_allow_grow) and bm_TGtkWindow_allow_grow);
  312. end;
  313. function configure_notify_received(var a : TGtkWindow) : guint;
  314. begin
  315. configure_notify_received:=(a.flag0 and bm_TGtkWindow_configure_notify_received) shr bp_TGtkWindow_configure_notify_received;
  316. end;
  317. procedure set_configure_notify_received(var a : TGtkWindow; __configure_notify_received : guint);
  318. begin
  319. a.flag0:=a.flag0 or ((__configure_notify_received shl bp_TGtkWindow_configure_notify_received) and bm_TGtkWindow_configure_notify_received);
  320. end;
  321. function need_default_position(var a : TGtkWindow) : guint;
  322. begin
  323. need_default_position:=(a.flag0 and bm_TGtkWindow_need_default_position) shr bp_TGtkWindow_need_default_position;
  324. end;
  325. procedure set_need_default_position(var a : TGtkWindow; __need_default_position : guint);
  326. begin
  327. a.flag0:=a.flag0 or ((__need_default_position shl bp_TGtkWindow_need_default_position) and bm_TGtkWindow_need_default_position);
  328. end;
  329. function need_default_size(var a : TGtkWindow) : guint;
  330. begin
  331. need_default_size:=(a.flag0 and bm_TGtkWindow_need_default_size) shr bp_TGtkWindow_need_default_size;
  332. end;
  333. procedure set_need_default_size(var a : TGtkWindow; __need_default_size : guint);
  334. begin
  335. a.flag0:=a.flag0 or ((__need_default_size shl bp_TGtkWindow_need_default_size) and bm_TGtkWindow_need_default_size);
  336. end;
  337. function position(var a : TGtkWindow) : guint;
  338. begin
  339. position:=(a.flag0 and bm_TGtkWindow_position) shr bp_TGtkWindow_position;
  340. end;
  341. procedure set_position(var a : TGtkWindow; __position : guint);
  342. begin
  343. a.flag0:=a.flag0 or ((__position shl bp_TGtkWindow_position) and bm_TGtkWindow_position);
  344. end;
  345. function get_type(var a : TGtkWindow) : guint;
  346. begin
  347. get_type:=(a.flag0 and bm_TGtkWindow_type) shr bp_TGtkWindow_type;
  348. end;
  349. procedure set_type(var a : TGtkWindow; __type : guint);
  350. begin
  351. a.flag0:=a.flag0 or ((__type shl bp_TGtkWindow_type) and bm_TGtkWindow_type);
  352. end;
  353. function has_user_ref_count(var a : TGtkWindow) : guint;
  354. begin
  355. has_user_ref_count:=(a.flag0 and bm_TGtkWindow_has_user_ref_count) shr bp_TGtkWindow_has_user_ref_count;
  356. end;
  357. procedure set_has_user_ref_count(var a : TGtkWindow; __has_user_ref_count : guint);
  358. begin
  359. a.flag0:=a.flag0 or ((__has_user_ref_count shl bp_TGtkWindow_has_user_ref_count) and bm_TGtkWindow_has_user_ref_count);
  360. end;
  361. function has_focus(var a : TGtkWindow) : guint;
  362. begin
  363. has_focus:=(a.flag0 and bm_TGtkWindow_has_focus) shr bp_TGtkWindow_has_focus;
  364. end;
  365. procedure set_has_focus(var a : TGtkWindow; __has_focus : guint);
  366. begin
  367. a.flag0:=a.flag0 or ((__has_focus shl bp_TGtkWindow_has_focus) and bm_TGtkWindow_has_focus);
  368. end;
  369. function modal(var a : TGtkWindow) : guint;
  370. begin
  371. modal:=(a.flag0 and bm_TGtkWindow_modal) shr bp_TGtkWindow_modal;
  372. end;
  373. procedure set_modal(var a : TGtkWindow; __modal : guint);
  374. begin
  375. a.flag0:=a.flag0 or ((__modal shl bp_TGtkWindow_modal) and bm_TGtkWindow_modal);
  376. end;
  377. function destroy_with_parent(var a : TGtkWindow) : guint;
  378. begin
  379. destroy_with_parent:=(a.flag0 and bm_TGtkWindow_destroy_with_parent) shr bp_TGtkWindow_destroy_with_parent;
  380. end;
  381. procedure set_destroy_with_parent(var a : TGtkWindow; __destroy_with_parent : guint);
  382. begin
  383. a.flag0:=a.flag0 or ((__destroy_with_parent shl bp_TGtkWindow_destroy_with_parent) and bm_TGtkWindow_destroy_with_parent);
  384. end;
  385. function has_frame(var a : TGtkWindow) : guint;
  386. begin
  387. has_frame:=(a.flag0 and bm_TGtkWindow_has_frame) shr bp_TGtkWindow_has_frame;
  388. end;
  389. procedure set_has_frame(var a : TGtkWindow; __has_frame : guint);
  390. begin
  391. a.flag0:=a.flag0 or ((__has_frame shl bp_TGtkWindow_has_frame) and bm_TGtkWindow_has_frame);
  392. end;
  393. function iconify_initially(var a : TGtkWindow) : guint;
  394. begin
  395. iconify_initially:=(a.flag0 and bm_TGtkWindow_iconify_initially) shr bp_TGtkWindow_iconify_initially;
  396. end;
  397. procedure set_iconify_initially(var a : TGtkWindow; __iconify_initially : guint);
  398. begin
  399. a.flag0:=a.flag0 or ((__iconify_initially shl bp_TGtkWindow_iconify_initially) and bm_TGtkWindow_iconify_initially);
  400. end;
  401. function stick_initially(var a : TGtkWindow) : guint;
  402. begin
  403. stick_initially:=(a.flag0 and bm_TGtkWindow_stick_initially) shr bp_TGtkWindow_stick_initially;
  404. end;
  405. procedure set_stick_initially(var a : TGtkWindow; __stick_initially : guint);
  406. begin
  407. a.flag0:=a.flag0 or ((__stick_initially shl bp_TGtkWindow_stick_initially) and bm_TGtkWindow_stick_initially);
  408. end;
  409. function maximize_initially(var a : TGtkWindow) : guint;
  410. begin
  411. maximize_initially:=(a.flag0 and bm_TGtkWindow_maximize_initially) shr bp_TGtkWindow_maximize_initially;
  412. end;
  413. procedure set_maximize_initially(var a : TGtkWindow; __maximize_initially : guint);
  414. begin
  415. a.flag0:=a.flag0 or ((__maximize_initially shl bp_TGtkWindow_maximize_initially) and bm_TGtkWindow_maximize_initially);
  416. end;
  417. function decorated(var a : TGtkWindow) : guint;
  418. begin
  419. decorated:=(a.flag0 and bm_TGtkWindow_decorated) shr bp_TGtkWindow_decorated;
  420. end;
  421. procedure set_decorated(var a : TGtkWindow; __decorated : guint);
  422. begin
  423. a.flag0:=a.flag0 or ((__decorated shl bp_TGtkWindow_decorated) and bm_TGtkWindow_decorated);
  424. end;
  425. function type_hint(var a : TGtkWindow) : guint;
  426. begin
  427. type_hint:=(a.flag0 and bm_TGtkWindow_type_hint) shr bp_TGtkWindow_type_hint;
  428. end;
  429. procedure set_type_hint(var a : TGtkWindow; __type_hint : guint);
  430. begin
  431. a.flag0:=a.flag0 or ((__type_hint shl bp_TGtkWindow_type_hint) and bm_TGtkWindow_type_hint);
  432. end;
  433. function gravity(var a : TGtkWindow) : guint;
  434. begin
  435. gravity:=(a.flag0 and bm_TGtkWindow_gravity) shr bp_TGtkWindow_gravity;
  436. end;
  437. procedure set_gravity(var a : TGtkWindow; __gravity : guint);
  438. begin
  439. a.flag0:=a.flag0 or ((__gravity shl bp_TGtkWindow_gravity) and bm_TGtkWindow_gravity);
  440. end;
  441. function GTK_TYPE_WINDOW_GROUP : GType;
  442. begin
  443. GTK_TYPE_WINDOW_GROUP:=gtk_window_group_get_type;
  444. end;
  445. function GTK_WINDOW_GROUP(anObject: pointer) : PGtkWindowGroup;
  446. begin
  447. GTK_WINDOW_GROUP:=PGtkWindowGroup(G_TYPE_CHECK_INSTANCE_CAST(anObject,GTK_TYPE_WINDOW_GROUP));
  448. end;
  449. function GTK_WINDOW_GROUP_CLASS(klass: pointer) : PGtkWindowGroupClass;
  450. begin
  451. GTK_WINDOW_GROUP_CLASS:=PGtkWindowGroupClass(G_TYPE_CHECK_CLASS_CAST(klass,GTK_TYPE_WINDOW_GROUP));
  452. end;
  453. function GTK_IS_WINDOW_GROUP(anObject: pointer) : boolean;
  454. begin
  455. GTK_IS_WINDOW_GROUP:=G_TYPE_CHECK_INSTANCE_TYPE(anObject,GTK_TYPE_WINDOW_GROUP);
  456. end;
  457. function GTK_IS_WINDOW_GROUP_CLASS(klass: pointer) : boolean;
  458. begin
  459. GTK_IS_WINDOW_GROUP_CLASS:=G_TYPE_CHECK_CLASS_TYPE(klass,GTK_TYPE_WINDOW_GROUP);
  460. end;
  461. function GTK_WINDOW_GROUP_GET_CLASS(obj: pointer) : PGtkWindowGroupClass;
  462. begin
  463. GTK_WINDOW_GROUP_GET_CLASS:=PGtkWindowGroupClass(G_TYPE_INSTANCE_GET_CLASS(obj,GTK_TYPE_WINDOW_GROUP));
  464. end;
  465. procedure gtk_window_position(window:PGtkWindow; position:TGtkWindowPosition);
  466. begin
  467. gtk_window_set_position(window,position);
  468. end;
  469. {$ENDIF read_implementation}
  470. // included by gtk2.pas