gtkuimanager.inc 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. // included by gtk2.pas
  2. {$IFDEF read_forward_definitions}
  3. {$ENDIF read_forward_definitions}
  4. {$IFDEF read_interface_types}
  5. type
  6. PGtkUIManagerPrivate = pointer;
  7. PGtkUIManager = ^TGtkUIManager;
  8. TGtkUIManager = record
  9. parent : TGObject;
  10. private_data : PGtkUIManagerPrivate;
  11. end;
  12. { Signals }
  13. { Padding for future expansion }
  14. PGtkUIManagerClass = ^TGtkUIManagerClass;
  15. TGtkUIManagerClass = record
  16. parent_class : TGObjectClass;
  17. add_widget : procedure (merge:PGtkUIManager; widget:PGtkWidget);cdecl;
  18. actions_changed : procedure (merge:PGtkUIManager);
  19. connect_proxy : procedure (merge:PGtkUIManager; action:PGtkAction; proxy:PGtkWidget);
  20. disconnect_proxy : procedure (merge:PGtkUIManager; action:PGtkAction; proxy:PGtkWidget);
  21. pre_activate : procedure (merge:PGtkUIManager; action:PGtkAction);
  22. post_activate : procedure (merge:PGtkUIManager; action:PGtkAction);
  23. _gtk_reserved1 : procedure ;
  24. _gtk_reserved2 : procedure ;
  25. _gtk_reserved3 : procedure ;
  26. _gtk_reserved4 : procedure ;
  27. end;
  28. PGtkUIManagerItemType = ^TGtkUIManagerItemType;
  29. TGtkUIManagerItemType = (GTK_UI_MANAGER_AUTO := 0,
  30. GTK_UI_MANAGER_MENUBAR := 1 shl 0,
  31. GTK_UI_MANAGER_MENU := 1 shl 1,
  32. GTK_UI_MANAGER_TOOLBAR := 1 shl 2,
  33. GTK_UI_MANAGER_PLACEHOLDER := 1 shl 3,
  34. GTK_UI_MANAGER_POPUP := 1 shl 4,
  35. GTK_UI_MANAGER_MENUITEM := 1 shl 5,
  36. GTK_UI_MANAGER_TOOLITEM := 1 shl 6,
  37. GTK_UI_MANAGER_SEPARATOR := 1 shl 7,
  38. GTK_UI_MANAGER_ACCELERATOR := 1 shl 8);
  39. {$ENDIF read_interface_types}
  40. {$IFDEF read_interface_rest}
  41. function GTK_TYPE_UI_MANAGER : GType;
  42. function GTK_UI_MANAGER(obj : pointer) : PGtkUIManager;
  43. function GTK_UI_MANAGER_CLASS(klass : pointer) : PGtkUIManagerClass;
  44. function GTK_IS_UI_MANAGER(obj : pointer) : gboolean;
  45. function GTK_IS_UI_MANAGER_CLASS(klass : pointer) : gboolean;
  46. function GTK_UI_MANAGER_GET_CLASS(obj : pointer) : PGtkUIManagerClass;
  47. function gtk_ui_manager_get_type:GType;cdecl;external gtklib name 'gtk_ui_manager_get_type';
  48. function gtk_ui_manager_new:PGtkUIManager;cdecl;external gtklib name 'gtk_ui_manager_new';
  49. procedure gtk_ui_manager_set_add_tearoffs(self:PGtkUIManager; add_tearoffs:gboolean);cdecl;external gtklib name 'gtk_ui_manager_set_add_tearoffs';
  50. function gtk_ui_manager_get_add_tearoffs(self:PGtkUIManager):gboolean;cdecl;external gtklib name 'gtk_ui_manager_get_add_tearoffs';
  51. procedure gtk_ui_manager_insert_action_group(self:PGtkUIManager; action_group:PGtkActionGroup; pos:gint);cdecl;external gtklib name 'gtk_ui_manager_insert_action_group';
  52. procedure gtk_ui_manager_remove_action_group(self:PGtkUIManager; action_group:PGtkActionGroup);cdecl;external gtklib name 'gtk_ui_manager_remove_action_group';
  53. function gtk_ui_manager_get_action_groups(self:PGtkUIManager):PGList;cdecl;external gtklib name 'gtk_ui_manager_get_action_groups';
  54. function gtk_ui_manager_get_accel_group(self:PGtkUIManager):PGtkAccelGroup;cdecl;external gtklib name 'gtk_ui_manager_get_accel_group';
  55. function gtk_ui_manager_get_widget(self:PGtkUIManager; path:Pgchar):PGtkWidget;cdecl;external gtklib name 'gtk_ui_manager_get_widget';
  56. function gtk_ui_manager_get_toplevels(self:PGtkUIManager; types:TGtkUIManagerItemType):PGSList;cdecl;external gtklib name 'gtk_ui_manager_get_toplevels';
  57. function gtk_ui_manager_get_action(self:PGtkUIManager; path:Pgchar):PGtkAction;cdecl;external gtklib name 'gtk_ui_manager_get_action';
  58. function gtk_ui_manager_add_ui_from_string(self:PGtkUIManager; buffer:Pgchar; length:gssize; error:PPGError):guint;cdecl;external gtklib name 'gtk_ui_manager_add_ui_from_string';
  59. function gtk_ui_manager_add_ui_from_file(self:PGtkUIManager; filename:Pgchar; error:PPGError):guint;cdecl;external gtklib name 'gtk_ui_manager_add_ui_from_file';
  60. procedure gtk_ui_manager_add_ui(self:PGtkUIManager; merge_id:guint; path:Pgchar; name:Pgchar; action:Pgchar;
  61. _type:TGtkUIManagerItemType; top:gboolean);cdecl;external gtklib name 'gtk_ui_manager_add_ui';
  62. procedure gtk_ui_manager_remove_ui(self:PGtkUIManager; merge_id:guint);cdecl;external gtklib name 'gtk_ui_manager_remove_ui';
  63. function gtk_ui_manager_get_ui(self:PGtkUIManager):Pgchar;cdecl;external gtklib name 'gtk_ui_manager_get_ui';
  64. procedure gtk_ui_manager_ensure_update(self:PGtkUIManager);cdecl;external gtklib name 'gtk_ui_manager_ensure_update';
  65. function gtk_ui_manager_new_merge_id(self:PGtkUIManager):guint;cdecl;external gtklib name 'gtk_ui_manager_new_merge_id';
  66. {$endif read_interface_rest}
  67. {$ifdef read_implementation}
  68. function GTK_TYPE_UI_MANAGER : GType;
  69. begin
  70. GTK_TYPE_UI_MANAGER:=gtk_ui_manager_get_type;
  71. end;
  72. function GTK_UI_MANAGER(obj : pointer) : PGtkUIManager;
  73. begin
  74. GTK_UI_MANAGER:=PGtkUIManager(G_TYPE_CHECK_INSTANCE_CAST(obj,GTK_TYPE_UI_MANAGER));
  75. end;
  76. function GTK_UI_MANAGER_CLASS(klass : pointer) : PGtkUIManagerClass;
  77. begin
  78. GTK_UI_MANAGER_CLASS:=PGtkUIManagerClass(G_TYPE_CHECK_CLASS_CAST(klass,GTK_TYPE_UI_MANAGER));
  79. end;
  80. function GTK_IS_UI_MANAGER(obj : pointer) : gboolean;
  81. begin
  82. GTK_IS_UI_MANAGER:=G_TYPE_CHECK_INSTANCE_TYPE(obj,GTK_TYPE_UI_MANAGER);
  83. end;
  84. function GTK_IS_UI_MANAGER_CLASS(klass : pointer) : gboolean;
  85. begin
  86. GTK_IS_UI_MANAGER_CLASS:=G_TYPE_CHECK_CLASS_TYPE(klass,GTK_TYPE_UI_MANAGER);
  87. end;
  88. function GTK_UI_MANAGER_GET_CLASS(obj : pointer) : PGtkUIManagerClass;
  89. begin
  90. GTK_UI_MANAGER_GET_CLASS:=PGtkUIManagerClass(G_TYPE_INSTANCE_GET_CLASS(obj,GTK_TYPE_UI_MANAGER));
  91. end;
  92. {$endif read_implementation}