gtkfixed.pp 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. {
  2. }
  3. {****************************************************************************
  4. Interface
  5. ****************************************************************************}
  6. {$ifdef read_interface}
  7. type
  8. PGtkFixed = ^TGtkFixed;
  9. TGtkFixed = record
  10. container : TGtkContainer;
  11. children : PGList;
  12. end;
  13. PGtkFixedClass = ^TGtkFixedClass;
  14. TGtkFixedClass = record
  15. parent_class : TGtkContainerClass;
  16. end;
  17. PGtkFixedChild = ^TGtkFixedChild;
  18. TGtkFixedChild = record
  19. widget : PGtkWidget;
  20. x : gint16;
  21. y : gint16;
  22. end;
  23. Type
  24. GTK_FIXED=PGtkFixed;
  25. GTK_FIXED_CLASS=PGtkFixedClass;
  26. function GTK_FIXED_TYPE:TGtkType;cdecl;external gtkdll name 'gtk_fixed_get_type';
  27. function GTK_IS_FIXED(obj:pointer):boolean;
  28. function GTK_IS_FIXED_CLASS(klass:pointer):boolean;
  29. function gtk_fixed_get_type:TGtkType;cdecl;external gtkdll name 'gtk_fixed_get_type';
  30. function gtk_fixed_new : PGtkWidget;cdecl;external gtkdll name 'gtk_fixed_new';
  31. procedure gtk_fixed_put(fixed:PGtkFixed; widget:PGtkWidget; x:gint16; y:gint16);cdecl;external gtkdll name 'gtk_fixed_put';
  32. procedure gtk_fixed_move(fixed:PGtkFixed; widget:PGtkWidget; x:gint16; y:gint16);cdecl;external gtkdll name 'gtk_fixed_move';
  33. {$endif read_interface}
  34. {****************************************************************************
  35. Implementation
  36. ****************************************************************************}
  37. {$ifdef read_implementation}
  38. function GTK_IS_FIXED(obj:pointer):boolean;
  39. begin
  40. GTK_IS_FIXED:=(obj<>nil) and GTK_IS_FIXED_CLASS(PGtkTypeObject(obj)^.klass);
  41. end;
  42. function GTK_IS_FIXED_CLASS(klass:pointer):boolean;
  43. begin
  44. GTK_IS_FIXED_CLASS:=(klass<>nil) and (PGtkTypeClass(klass)^.thetype=GTK_FIXED_TYPE);
  45. end;
  46. {$endif read_implementation}