gtktearoffmenuitem.inc 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. // included by gtk2.pas
  2. {$IFDEF read_forward_definitions}
  3. {$ENDIF read_forward_definitions}
  4. //------------------------------------------------------------------------------
  5. {$IFDEF read_interface_types}
  6. PGtkTearoffMenuItem = ^TGtkTearoffMenuItem;
  7. TGtkTearoffMenuItem = record
  8. menu_item : TGtkMenuItem;
  9. flag0 : word;
  10. end;
  11. { Padding for future expansion }
  12. PGtkTearoffMenuItemClass = ^TGtkTearoffMenuItemClass;
  13. TGtkTearoffMenuItemClass = record
  14. parent_class : TGtkMenuItemClass;
  15. _gtk_reserved1 : procedure ; cdecl;
  16. _gtk_reserved2 : procedure ; cdecl;
  17. _gtk_reserved3 : procedure ; cdecl;
  18. _gtk_reserved4 : procedure ; cdecl;
  19. end;
  20. {$ENDIF read_interface_types}
  21. //------------------------------------------------------------------------------
  22. {$IFDEF read_interface_rest}
  23. const
  24. bm_TGtkTearoffMenuItem_torn_off = $1;
  25. bp_TGtkTearoffMenuItem_torn_off = 0;
  26. function GTK_TYPE_TEAROFF_MENU_ITEM : GType;
  27. function GTK_TEAROFF_MENU_ITEM(obj: pointer) : PGtkTearoffMenuItem;
  28. function GTK_TEAROFF_MENU_ITEM_CLASS(klass: pointer) : PGtkTearoffMenuItemClass;
  29. function GTK_IS_TEAROFF_MENU_ITEM(obj: pointer) : boolean;
  30. function GTK_IS_TEAROFF_MENU_ITEM_CLASS(klass: pointer) : boolean;
  31. function GTK_TEAROFF_MENU_ITEM_GET_CLASS(obj: pointer) : PGtkTearoffMenuItemClass;
  32. function torn_off(var a : TGtkTearoffMenuItem) : guint; overload;
  33. procedure set_torn_off(var a : TGtkTearoffMenuItem; __torn_off : guint); overload;
  34. function gtk_tearoff_menu_item_get_type:TGtkType; cdecl; external gtklib;
  35. function gtk_tearoff_menu_item_new:PGtkWidget; cdecl; external gtklib;
  36. {$ENDIF read_interface_rest}
  37. //------------------------------------------------------------------------------
  38. {$IFDEF read_implementation}
  39. function GTK_TYPE_TEAROFF_MENU_ITEM : GType;
  40. begin
  41. GTK_TYPE_TEAROFF_MENU_ITEM:=gtk_tearoff_menu_item_get_type;
  42. end;
  43. function GTK_TEAROFF_MENU_ITEM(obj: pointer) : PGtkTearoffMenuItem;
  44. begin
  45. GTK_TEAROFF_MENU_ITEM:=PGtkTearoffMenuItem(GTK_CHECK_CAST(obj,GTK_TYPE_TEAROFF_MENU_ITEM));
  46. end;
  47. function GTK_TEAROFF_MENU_ITEM_CLASS(klass: pointer) : PGtkTearoffMenuItemClass;
  48. begin
  49. GTK_TEAROFF_MENU_ITEM_CLASS:=PGtkTearoffMenuItemClass(GTK_CHECK_CLASS_CAST(klass,GTK_TYPE_TEAROFF_MENU_ITEM));
  50. end;
  51. function GTK_IS_TEAROFF_MENU_ITEM(obj: pointer) : boolean;
  52. begin
  53. GTK_IS_TEAROFF_MENU_ITEM:=GTK_CHECK_TYPE(obj,GTK_TYPE_TEAROFF_MENU_ITEM);
  54. end;
  55. function GTK_IS_TEAROFF_MENU_ITEM_CLASS(klass: pointer) : boolean;
  56. begin
  57. GTK_IS_TEAROFF_MENU_ITEM_CLASS:=GTK_CHECK_CLASS_TYPE(klass,GTK_TYPE_TEAROFF_MENU_ITEM);
  58. end;
  59. function GTK_TEAROFF_MENU_ITEM_GET_CLASS(obj: pointer) : PGtkTearoffMenuItemClass;
  60. begin
  61. GTK_TEAROFF_MENU_ITEM_GET_CLASS:=PGtkTearoffMenuItemClass(GTK_CHECK_GET_CLASS(obj,GTK_TYPE_TEAROFF_MENU_ITEM));
  62. end;
  63. function torn_off(var a : TGtkTearoffMenuItem) : guint;
  64. begin
  65. torn_off:=(a.flag0 and bm_TGtkTearoffMenuItem_torn_off) shr bp_TGtkTearoffMenuItem_torn_off;
  66. end;
  67. procedure set_torn_off(var a : TGtkTearoffMenuItem; __torn_off : guint);
  68. begin
  69. a.flag0:=a.flag0 or ((__torn_off shl bp_TGtkTearoffMenuItem_torn_off) and bm_TGtkTearoffMenuItem_torn_off);
  70. end;
  71. {$ENDIF read_implementation}
  72. // included by gtk2.pas