gnomeiconentry.inc 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {$IfDef read_interface}
  2. type
  3. PGnomeIconEntry = ^TGnomeIconEntry;
  4. TGnomeIconEntry = record
  5. vbox : TGtkVBox;
  6. fentry : PGtkWidget;
  7. pickbutton : PGtkWidget;
  8. pick_dialog : PGtkWidget;
  9. pick_dialog_dir : Pgchar;
  10. end;
  11. GNOME_ICON_ENTRY = PGnomeIconEntry;
  12. PGnomeIconEntryClass = ^TGnomeIconEntryClass;
  13. TGnomeIconEntryClass = record
  14. parent_class : TGtkVBoxClass;
  15. end;
  16. GNOME_ICON_ENTRY_CLASS = PGnomeIconEntryClass;
  17. function GNOME_TYPE_ICON_ENTRY : TGTKType;
  18. function GNOME_IS_ICON_ENTRY(obj : Pointer) : Boolean;
  19. function GNOME_IS_ICON_ENTRY_CLASS(klass : Pointer) : Boolean;
  20. function gnome_icon_entry_get_type:TGTKType;cdecl;external libgnomeuidll name 'gnome_icon_entry_get_type';
  21. function gnome_icon_entry_new(history_id:Pgchar; browse_dialog_title:Pgchar):PGtkWidget;cdecl;external libgnomeuidll name 'gnome_icon_entry_new';
  22. procedure gnome_icon_entry_set_pixmap_subdir(ientry:PGnomeIconEntry; subdir:Pgchar);cdecl;external libgnomeuidll name 'gnome_icon_entry_set_pixmap_subdir';
  23. procedure gnome_icon_entry_set_icon(ientry:PGnomeIconEntry; filename:Pgchar);cdecl;external libgnomeuidll name 'gnome_icon_entry_set_icon';
  24. function gnome_icon_entry_gnome_file_entry(ientry:PGnomeIconEntry):PGtkWidget;cdecl;external libgnomeuidll name 'gnome_icon_entry_gnome_file_entry';
  25. function gnome_icon_entry_gnome_entry(ientry:PGnomeIconEntry):PGtkWidget;cdecl;external libgnomeuidll name 'gnome_icon_entry_gnome_entry';
  26. function gnome_icon_entry_gtk_entry(ientry:PGnomeIconEntry):PGtkWidget;cdecl;external libgnomeuidll name 'gnome_icon_entry_gtk_entry';
  27. function gnome_icon_entry_get_filename(ientry:PGnomeIconEntry):Pgchar;cdecl;external libgnomeuidll name 'gnome_icon_entry_get_filename';
  28. {$EndIf read_interface}
  29. {$Ifdef read_implementation}
  30. function GNOME_TYPE_ICON_ENTRY : TGTKType;
  31. begin
  32. GNOME_TYPE_ICON_ENTRY:=gnome_icon_entry_get_type;
  33. end;
  34. function GNOME_IS_ICON_ENTRY(obj : Pointer) : Boolean;
  35. begin
  36. GNOME_IS_ICON_ENTRY:=(obj<>nil) and GNOME_IS_ICON_ENTRY_CLASS(PGtkTypeObject(obj)^.klass);
  37. end;
  38. function GNOME_IS_ICON_ENTRY_CLASS(klass : Pointer) : Boolean;
  39. begin
  40. GNOME_IS_ICON_ENTRY_CLASS:=(klass<>nil) and (PGtkTypeClass(klass)^.thetype=GNOME_TYPE_ICON_ENTRY);
  41. end;
  42. {$Endif read_implementation}