gtkscrollbar.inc 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. // included by gtk2.pas
  2. {$IFDEF read_forward_definitions}
  3. {$ENDIF read_forward_definitions}
  4. //------------------------------------------------------------------------------
  5. {$IFDEF read_interface_types}
  6. PGtkScrollbar = ^TGtkScrollbar;
  7. TGtkScrollbar = record
  8. range : TGtkRange;
  9. end;
  10. { Padding for future expansion }
  11. PGtkScrollbarClass = ^TGtkScrollbarClass;
  12. TGtkScrollbarClass = record
  13. parent_class : TGtkRangeClass;
  14. _gtk_reserved1 : procedure ; cdecl;
  15. _gtk_reserved2 : procedure ; cdecl;
  16. _gtk_reserved3 : procedure ; cdecl;
  17. _gtk_reserved4 : procedure ; cdecl;
  18. end;
  19. {$ENDIF read_interface_types}
  20. //------------------------------------------------------------------------------
  21. {$IFDEF read_interface_rest}
  22. function GTK_TYPE_SCROLLBAR : GType;
  23. function GTK_SCROLLBAR(obj: pointer) : PGtkScrollbar;
  24. function GTK_SCROLLBAR_CLASS(klass: pointer) : PGtkScrollbarClass;
  25. function GTK_IS_SCROLLBAR(obj: pointer) : boolean;
  26. function GTK_IS_SCROLLBAR_CLASS(klass: pointer) : boolean;
  27. function GTK_SCROLLBAR_GET_CLASS(obj: pointer) : PGtkScrollbarClass;
  28. function gtk_scrollbar_get_type:TGtkType; cdecl; external gtklib;
  29. {$ENDIF read_interface_rest}
  30. //------------------------------------------------------------------------------
  31. {$IFDEF read_implementation}
  32. function GTK_TYPE_SCROLLBAR : GType;
  33. begin
  34. GTK_TYPE_SCROLLBAR:=gtk_scrollbar_get_type;
  35. end;
  36. function GTK_SCROLLBAR(obj: pointer) : PGtkScrollbar;
  37. begin
  38. GTK_SCROLLBAR:=PGtkScrollbar(GTK_CHECK_CAST(obj,GTK_TYPE_SCROLLBAR));
  39. end;
  40. function GTK_SCROLLBAR_CLASS(klass: pointer) : PGtkScrollbarClass;
  41. begin
  42. GTK_SCROLLBAR_CLASS:=PGtkScrollbarClass(GTK_CHECK_CLASS_CAST(klass,GTK_TYPE_SCROLLBAR));
  43. end;
  44. function GTK_IS_SCROLLBAR(obj: pointer) : boolean;
  45. begin
  46. GTK_IS_SCROLLBAR:=GTK_CHECK_TYPE(obj,GTK_TYPE_SCROLLBAR);
  47. end;
  48. function GTK_IS_SCROLLBAR_CLASS(klass: pointer) : boolean;
  49. begin
  50. GTK_IS_SCROLLBAR_CLASS:=GTK_CHECK_CLASS_TYPE(klass,GTK_TYPE_SCROLLBAR);
  51. end;
  52. function GTK_SCROLLBAR_GET_CLASS(obj: pointer) : PGtkScrollbarClass;
  53. begin
  54. GTK_SCROLLBAR_GET_CLASS:=PGtkScrollbarClass(GTK_CHECK_GET_CLASS(obj,GTK_TYPE_SCROLLBAR));
  55. end;
  56. {$ENDIF read_implementation}
  57. // included by gtk2.pas