2
0

gnomedruid.inc 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. {$IfDef read_interface}
  2. type
  3. PGnomeDruid = ^TGnomeDruid;
  4. TGnomeDruid = record
  5. parent : TGtkContainer;
  6. back : PGtkWidget;
  7. next : PGtkWidget;
  8. cancel : PGtkWidget;
  9. finish : PGtkWidget;
  10. current : PGnomeDruidPage;
  11. children : PGList;
  12. show_finish : gboolean;
  13. end;
  14. GNOME_DRUID = PGnomeDruid;
  15. PGnomeDruidClass = ^TGnomeDruidClass;
  16. TGnomeDruidClass = record
  17. parent_class : TGtkContainerClass;
  18. cancel : procedure (druid:PGnomeDruid);cdecl;
  19. end;
  20. GNOME_DRUID_CLASS = PGnomeDruidClass;
  21. function GNOME_TYPE_DRUID : TGTKType;
  22. function GNOME_IS_DRUID(obj : Pointer) : Boolean;
  23. function GNOME_IS_DRUID_CLASS(klass : Pointer) : Boolean;
  24. function gnome_druid_get_type:TGtkType;cdecl;external libgnomeuidll name 'gnome_druid_get_type';
  25. function gnome_druid_new:PGtkWidget;cdecl;external libgnomeuidll name 'gnome_druid_new';
  26. procedure gnome_druid_set_buttons_sensitive(druid:PGnomeDruid; back_sensitive:gboolean; next_sensitive:gboolean; cancel_sensitive:gboolean);cdecl;external libgnomeuidll name 'gnome_druid_set_buttons_sensitive';
  27. procedure gnome_druid_set_show_finish(druid:PGnomeDruid; show_finish:gboolean);cdecl;external libgnomeuidll name 'gnome_druid_set_show_finish';
  28. procedure gnome_druid_prepend_page(druid:PGnomeDruid; page:PGnomeDruidPage);cdecl;external libgnomeuidll name 'gnome_druid_prepend_page';
  29. procedure gnome_druid_insert_page(druid:PGnomeDruid; back_page:PGnomeDruidPage; page:PGnomeDruidPage);cdecl;external libgnomeuidll name 'gnome_druid_insert_page';
  30. procedure gnome_druid_append_page(druid:PGnomeDruid; page:PGnomeDruidPage);cdecl;external libgnomeuidll name 'gnome_druid_append_page';
  31. procedure gnome_druid_set_page(druid:PGnomeDruid; page:PGnomeDruidPage);cdecl;external libgnomeuidll name 'gnome_druid_set_page';
  32. {$EndIf read_interface}
  33. {$Ifdef read_implementation}
  34. function GNOME_TYPE_DRUID : TGTKType;
  35. begin
  36. GNOME_TYPE_DRUID:=gnome_druid_get_type;
  37. end;
  38. function GNOME_IS_DRUID(obj : Pointer) : Boolean;
  39. begin
  40. GNOME_IS_DRUID:=(obj<>nil) and GNOME_IS_DRUID_CLASS(PGtkTypeObject(obj)^.klass);
  41. end;
  42. function GNOME_IS_DRUID_CLASS(klass : Pointer) : Boolean;
  43. begin
  44. GNOME_IS_DRUID_CLASS:=(klass<>nil) and (PGtkTypeClass(klass)^.thetype=GNOME_TYPE_DRUID);
  45. end;
  46. {$Endif read_implementation}