gnomehref.inc 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. {$IfDef read_interface}
  2. type
  3. PGnomeHRef = ^TGnomeHRef;
  4. TGnomeHRef = record
  5. button : TGtkButton;
  6. url : Pgchar;
  7. thelabel : PGtkWidget;
  8. end;
  9. GNOME_HREF = PGnomeHRef;
  10. PGnomeHRefClass = ^TGnomeHRefClass;
  11. TGnomeHRefClass = record
  12. parent_class : TGtkButtonClass;
  13. end;
  14. GNOME_HREF_CLASS = PGnomeHRefClass;
  15. function GNOME_TYPE_HREF : TGTKType;
  16. function GNOME_IS_HREF(obj : Pointer) : Boolean;
  17. function GNOME_IS_HREF_CLASS(klass : Pointer) : Boolean;
  18. function gnome_href_get_type:TGTKType;cdecl;external libgnomeuidll name 'gnome_href_get_type';
  19. function gnome_href_new(url:Pgchar; thelabel:Pgchar):PGtkWidget;cdecl;external libgnomeuidll name 'gnome_href_new';
  20. procedure gnome_href_set_url(href:PGnomeHRef; url:Pgchar);cdecl;external libgnomeuidll name 'gnome_href_set_url';
  21. function gnome_href_get_url(href:PGnomeHRef):Pgchar;cdecl;external libgnomeuidll name 'gnome_href_get_url';
  22. procedure gnome_href_set_label(href:PGnomeHRef; thelabel:Pgchar);cdecl;external libgnomeuidll name 'gnome_href_set_label';
  23. function gnome_href_get_label(href:PGnomeHRef):Pgchar;cdecl;external libgnomeuidll name 'gnome_href_get_label';
  24. {$EndIf read_interface}
  25. {$Ifdef read_implementation}
  26. function GNOME_TYPE_HREF : TGTKType;
  27. begin
  28. GNOME_TYPE_HREF:=gnome_href_get_type;
  29. end;
  30. function GNOME_IS_HREF(obj : Pointer) : Boolean;
  31. begin
  32. GNOME_IS_HREF:=(obj<>nil) and GNOME_IS_HREF_CLASS(PGtkTypeObject(obj)^.klass);
  33. end;
  34. function GNOME_IS_HREF_CLASS(klass : Pointer) : Boolean;
  35. begin
  36. GNOME_IS_HREF_CLASS:=(klass<>nil) and (PGtkTypeClass(klass)^.thetype=GNOME_TYPE_HREF);
  37. end;
  38. {$Endif read_implementation}