gnomeiconsel.inc 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {$IfDef read_interface}
  2. type
  3. PGnomeIconSelection = ^TGnomeIconSelection;
  4. TGnomeIconSelection = record
  5. vbox : TGtkVBox;
  6. box : PGtkWidget;
  7. gil : PGtkWidget;
  8. file_list : PGList;
  9. stop_loading : longint;
  10. end;
  11. GNOME_ICON_SELECTION = PGnomeIconSelection;
  12. PGnomeIconSelectionClass = ^TGnomeIconSelectionClass;
  13. TGnomeIconSelectionClass = record
  14. parent_class : TGtkVBoxClass;
  15. end;
  16. GNOME_ICON_SELECTION_CLASS = PGnomeIconSelectionClass;
  17. function GNOME_TYPE_ICON_SELECTION : TGTKType;
  18. function GNOME_IS_ICON_SELECTION(obj : Pointer) : Boolean;
  19. function GNOME_IS_ICON_SELECTION_CLASS(klass : Pointer) : Boolean;
  20. function gnome_icon_selection_get_type:TGTKType;cdecl;external libgnomeuidll name 'gnome_icon_selection_get_type';
  21. function gnome_icon_selection_new:PGtkWidget;cdecl;external libgnomeuidll name 'gnome_icon_selection_new';
  22. procedure gnome_icon_selection_add_defaults(gis:PGnomeIconSelection);cdecl;external libgnomeuidll name 'gnome_icon_selection_add_defaults';
  23. procedure gnome_icon_selection_add_directory(gis:PGnomeIconSelection; dir:Pgchar);cdecl;external libgnomeuidll name 'gnome_icon_selection_add_directory';
  24. procedure gnome_icon_selection_show_icons(gis:PGnomeIconSelection);cdecl;external libgnomeuidll name 'gnome_icon_selection_show_icons';
  25. procedure gnome_icon_selection_clear(gis:PGnomeIconSelection; not_shown:gboolean);cdecl;external libgnomeuidll name 'gnome_icon_selection_clear';
  26. function gnome_icon_selection_get_icon(gis:PGnomeIconSelection; full_path:gboolean):Pgchar;cdecl;external libgnomeuidll name 'gnome_icon_selection_get_icon';
  27. procedure gnome_icon_selection_select_icon(gis:PGnomeIconSelection; filename:Pgchar);cdecl;external libgnomeuidll name 'gnome_icon_selection_select_icon';
  28. procedure gnome_icon_selection_stop_loading(gis:PGnomeIconSelection);cdecl;external libgnomeuidll name 'gnome_icon_selection_stop_loading';
  29. {$EndIf read_interface}
  30. {$Ifdef read_implementation}
  31. function GNOME_TYPE_ICON_SELECTION : TGTKType;
  32. begin
  33. GNOME_TYPE_ICON_SELECTION:=gnome_icon_selection_get_type;
  34. end;
  35. function GNOME_IS_ICON_SELECTION(obj : Pointer) : Boolean;
  36. begin
  37. GNOME_IS_ICON_SELECTION:=(obj<>nil) and GNOME_IS_ICON_SELECTION_CLASS(PGtkTypeObject(obj)^.klass);
  38. end;
  39. function GNOME_IS_ICON_SELECTION_CLASS(klass : Pointer) : Boolean;
  40. begin
  41. GNOME_IS_ICON_SELECTION_CLASS:=(klass<>nil) and (PGtkTypeClass(klass)^.thetype=GNOME_TYPE_ICON_SELECTION);
  42. end;
  43. {$Endif read_implementation}