ATK Library Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
gchar* atk_hyperlink_get_uri (AtkHyperlink *link, gint i); AtkObject* atk_hyperlink_get_object (AtkHyperlink *link, gint i); gint atk_hyperlink_get_end_index (AtkHyperlink *link); gint atk_hyperlink_get_start_index (AtkHyperlink *link); gboolean atk_hyperlink_is_valid (AtkHyperlink *link); gint atk_hyperlink_get_n_anchors (AtkHyperlink *link); |
AtkHyperLink encapsulates a link or set of links in a hypertext document. It implements the AtkAction interface.
gchar* atk_hyperlink_get_uri (AtkHyperlink *link, gint i); |
Get a the URI associated with the anchor specified by i of link.
Multiple anchors are primarily used by client-side image maps.
link : | an AtkHyperlink |
i : | a (zero-index) integer specifying the desired anchor |
Returns : | a string specifying the URI |
AtkObject* atk_hyperlink_get_object (AtkHyperlink *link, gint i); |
Returns the item associated with this hyperlinks nth anchor. For instance, the returned AtkObject will implement AtkText if link is a text hyperlink, AtkImage if link is an image hyperlink etc.
Multiple anchors are primarily used by client-side image maps.
link : | an AtkHyperlink |
i : | a (zero-index) integer specifying the desired anchor |
Returns : | an AtkObject associated with this hyperlinks i-th anchor. |
gint atk_hyperlink_get_end_index (AtkHyperlink *link); |
Gets the index with the hypertext document at which this link ends
link : | an AtkHyperlink |
Returns : | the index with the hypertext document at which this link ends |
gint atk_hyperlink_get_start_index (AtkHyperlink *link); |
Gets the index with the hypertext document at which this link begins
link : | an AtkHyperlink |
Returns : | the index with the hypertext document at which this link begins |
gboolean atk_hyperlink_is_valid (AtkHyperlink *link); |
Since the document a link is associated with may have changed, this method returns whether or not this link is still valid (with respect to the document is references)
link : | an AtkHyperlink |
Returns : | whether or not this link is still valid. |
gint atk_hyperlink_get_n_anchors (AtkHyperlink *link); |
Gets the number of anchors associated with this hyperlink
link : | an AtkHyperlink |
Returns : | the number of anchors associated with this hyperlink |