4
AtkHyperlink encapsulates a link or set of links in a hypertext document.
6
It implements the AtkAction interface.
9
{$IFDEF read_forward_definitions}
10
{$ENDIF read_forward_definitions}
12
//------------------------------------------------------------------------------
14
{$IFDEF read_interface_types}
15
PAtkHyperlink = ^TAtkHyperlink;
16
TAtkHyperlink = record
20
{ Returns a string specifying the URI associated with the nth anchor
22
{ Returns an anObject which represents the link action, as appropriate for
24
{ Gets the index with the hypertext document at which this link ends }
25
{ Gets the index with the hypertext document at which this link begins }
26
{ Since the document a link is associated with may have changed, this
27
method returns whether or not this link is still valid (with respect
28
to the document is references) }
29
{ Returns the number of anchors associated with this link }
30
PAtkHyperlinkClass = ^TAtkHyperlinkClass;
31
TAtkHyperlinkClass = record
32
parent : TGObjectClass;
33
get_uri : function (link:PAtkHyperlink; i:gint):Pgchar; cdecl;
34
get_object : function (link:PAtkHyperlink; i:gint):PAtkObject; cdecl;
35
get_end_index : function (link:PAtkHyperlink):gint; cdecl;
36
get_start_index : function (link:PAtkHyperlink):gint; cdecl;
37
is_valid : function (link:PAtkHyperlink):gboolean; cdecl;
38
get_n_anchors : function (link:PAtkHyperlink):gint; cdecl;
45
{$ENDIF read_interface_types}
47
//------------------------------------------------------------------------------
49
{$IFDEF read_interface_rest}
50
function ATK_TYPE_HYPERLINK : GType;
51
function ATK_HYPERLINK(obj: pointer) : PAtkHyperlink;
52
function ATK_HYPERLINK_CLASS(klass: pointer) : PAtkHyperlinkClass;
53
function ATK_IS_HYPERLINK(obj: pointer) : boolean;
54
function ATK_IS_HYPERLINK_CLASS(klass: pointer) : boolean;
55
function ATK_HYPERLINK_GET_CLASS(obj: pointer) : PAtkHyperlinkClass;
58
function atk_hyperlink_get_type:GType; cdecl; external atklib;
59
function atk_hyperlink_get_uri(link:PAtkHyperlink; i:gint):Pgchar; cdecl; external atklib;
60
function atk_hyperlink_get_object(link:PAtkHyperlink; i:gint):PAtkObject; cdecl; external atklib;
61
function atk_hyperlink_get_end_index(link:PAtkHyperlink):gint; cdecl; external atklib;
62
function atk_hyperlink_get_start_index(link:PAtkHyperlink):gint; cdecl; external atklib;
63
function atk_hyperlink_is_valid(link:PAtkHyperlink):gboolean; cdecl; external atklib;
64
function atk_hyperlink_get_n_anchors(link:PAtkHyperlink):gint; cdecl; external atklib;
65
{$ENDIF read_interface_rest}
67
//------------------------------------------------------------------------------
69
{$IFDEF read_implementation}
70
function ATK_TYPE_HYPERLINK : GType;
72
ATK_TYPE_HYPERLINK:=atk_hyperlink_get_type;
75
function ATK_HYPERLINK(obj: pointer) : PAtkHyperlink;
77
ATK_HYPERLINK:=PAtkHyperlink(G_TYPE_CHECK_INSTANCE_CAST(obj,ATK_TYPE_HYPERLINK));
80
function ATK_HYPERLINK_CLASS(klass: pointer) : PAtkHyperlinkClass;
82
ATK_HYPERLINK_CLASS:=PAtkHyperlinkClass(G_TYPE_CHECK_CLASS_CAST(klass,ATK_TYPE_HYPERLINK));
85
function ATK_IS_HYPERLINK(obj: pointer) : boolean;
87
ATK_IS_HYPERLINK:=G_TYPE_CHECK_INSTANCE_TYPE(obj,ATK_TYPE_HYPERLINK);
90
function ATK_IS_HYPERLINK_CLASS(klass: pointer) : boolean;
92
ATK_IS_HYPERLINK_CLASS:=G_TYPE_CHECK_CLASS_TYPE(klass,ATK_TYPE_HYPERLINK);
95
function ATK_HYPERLINK_GET_CLASS(obj: pointer) : PAtkHyperlinkClass;
97
ATK_HYPERLINK_GET_CLASS:=PAtkHyperlinkClass(G_TYPE_INSTANCE_GET_CLASS(obj,ATK_TYPE_HYPERLINK));
100
{$ENDIF read_implementation}