Atspi.Hyperlink¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class Atspi.Hyperlink(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Instances of atspi-hyperlink are the means by which end users and clients interact with linked content.
Instances of atspi-hyperlink are returned by atspi-hypertext objects, and are the means by which end users and clients interact with linked, and in some cases embedded, content. These instances may have multiple “anchors”, where an anchor corresponds to a reference to a particular resource with a corresponding resource identified (URI).
- get_end_index()¶
- Raises:
- Return type:
Gets the ending character offset of the text range associated with an
Atspi.Hyperlink, in its originatingAtspi.Hypertext.
- get_index_range()¶
- Raises:
- Return type:
Gets the starting and ending character offsets of the text range associated with an
Atspi.Hyperlink, in its originatingAtspi.Hypertext.
- get_n_anchors()¶
- Raises:
- Returns:
a
intindicating the number of anchors in this hyperlink.- Return type:
Gets the total number of anchors which an
Atspi.Hyperlinkimplementor has. Though typical hyperlinks have only one anchor, client-side image maps and other hypertext objects may potentially activate or refer to multiple URIs. For each anchor there is a corresponding URI and object.see:
Atspi.Hyperlink.get_uriandAtspi.Hyperlink.get_object.
- get_object(i)¶
- Parameters:
i (
int) – a (zero-index)intindicating which hyperlink anchor to query.- Raises:
- Returns:
an
Atspi.Accessiblethat represents the object associated with the ith anchor of the specifiedAtspi.Hyperlink.- Return type:
Gets the object associated with a particular hyperlink anchor, as an
Atspi.Accessible.
- get_start_index()¶
- Raises:
- Return type:
Gets the starting character offset of the text range associated with an
Atspi.Hyperlink, in its originatingAtspi.Hypertext.
- get_uri(i)¶
- Parameters:
i (
int) – a (zero-index) integer indicating which hyperlink anchor to query.- Raises:
- Returns:
a UTF-8 string giving the URI of the ith hyperlink anchor.
- Return type:
Gets the URI associated with a particular hyperlink anchor.
- is_valid()¶
- Raises:
- Returns:
Trueif the specifiedAtspi.Hyperlinkis still valid with respect to its originatingAtspi.Hypertextobject,Falseotherwise.- Return type:
Tells whether an
Atspi.Hyperlinkobject is still valid with respect to its originating hypertext object.