gnomepaperselector.inc 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. {$IfDef read_interface}
  2. type
  3. PGnomePaperSelector = ^TGnomePaperSelector;
  4. TGnomePaperSelector = record
  5. vbox : TGtkVBox;
  6. paper : PGtkWidget;
  7. width : PGtkWidget;
  8. height : PGtkWidget;
  9. theunit : PGtkWidget;
  10. unit_label : PGtkWidget;
  11. paper_id : gint;
  12. width_id : gint;
  13. height_id : gint;
  14. end;
  15. GNOME_PAPER_SELECTOR = PGnomePaperSelector;
  16. PGnomePaperSelectorClass = ^TGnomePaperSelectorClass;
  17. TGnomePaperSelectorClass = record
  18. parent_class : TGtkVBoxClass;
  19. end;
  20. GNOME_PAPER_SELECTOR_CLASS = PGnomePaperSelectorClass;
  21. function GNOME_TYPE_PAPER_SELECTOR : TGTKType;
  22. function GNOME_IS_PAPER_SELECTOR(obj : Pointer) : Boolean;
  23. function GNOME_IS_PAPER_SELECTOR_CLASS(klass : Pointer) : Boolean;
  24. function gnome_paper_selector_get_type:TGTKType;cdecl;external libgnomeuidll name 'gnome_paper_selector_get_type';
  25. function gnome_paper_selector_new:PGtkWidget;cdecl;external libgnomeuidll name 'gnome_paper_selector_new';
  26. function gnome_paper_selector_get_name(gspaper:PGnomePaperSelector):Pgchar;cdecl;external libgnomeuidll name 'gnome_paper_selector_get_name';
  27. function gnome_paper_selector_get_width(gspaper:PGnomePaperSelector):gfloat;cdecl;external libgnomeuidll name 'gnome_paper_selector_get_width';
  28. function gnome_paper_selector_get_height(gspaper:PGnomePaperSelector):gfloat;cdecl;external libgnomeuidll name 'gnome_paper_selector_get_height';
  29. function gnome_paper_selector_get_left_margin(gspaper:PGnomePaperSelector):gfloat;cdecl;external libgnomeuidll name 'gnome_paper_selector_get_left_margin';
  30. function gnome_paper_selector_get_right_margin(gspaper:PGnomePaperSelector):gfloat;cdecl;external libgnomeuidll name 'gnome_paper_selector_get_right_margin';
  31. function gnome_paper_selector_get_top_margin(gspaper:PGnomePaperSelector):gfloat;cdecl;external libgnomeuidll name 'gnome_paper_selector_get_top_margin';
  32. function gnome_paper_selector_get_bottom_margin(gspaper:PGnomePaperSelector):gfloat;cdecl;external libgnomeuidll name 'gnome_paper_selector_get_bottom_margin';
  33. procedure gnome_paper_selector_set_name(gspaper:PGnomePaperSelector; name:Pgchar);cdecl;external libgnomeuidll name 'gnome_paper_selector_set_name';
  34. procedure gnome_paper_selector_set_width(gspaper:PGnomePaperSelector; width:gfloat);cdecl;external libgnomeuidll name 'gnome_paper_selector_set_width';
  35. procedure gnome_paper_selector_set_height(gspaper:PGnomePaperSelector; height:gfloat);cdecl;external libgnomeuidll name 'gnome_paper_selector_set_height';
  36. {$EndIf read_interface}
  37. {$Ifdef read_implementation}
  38. function GNOME_TYPE_PAPER_SELECTOR : TGTKType;
  39. begin
  40. GNOME_TYPE_PAPER_SELECTOR:=gnome_paper_selector_get_type;
  41. end;
  42. function GNOME_IS_PAPER_SELECTOR(obj : Pointer) : Boolean;
  43. begin
  44. GNOME_IS_PAPER_SELECTOR:=(obj<>nil) and GNOME_IS_PAPER_SELECTOR_CLASS(PGtkTypeObject(obj)^.klass);
  45. end;
  46. function GNOME_IS_PAPER_SELECTOR_CLASS(klass : Pointer) : Boolean;
  47. begin
  48. GNOME_IS_PAPER_SELECTOR_CLASS:=(klass<>nil) and (PGtkTypeClass(klass)^.thetype=GNOME_TYPE_PAPER_SELECTOR);
  49. end;
  50. {$Endif read_implementation}