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