The ATK interface which provides standard mechanism for manipulating hyperlinks.
An interface used for objects which implement linking between multiple resource or content locations, or multiple 'markers' within a single document. A Hypertext instance is associated with one or more Hyperlinks, which are associated with particular offsets within the Hypertext's included content. While this interface is derived from Text, there is no requirement that Hypertext instances have textual content; they may implement Image as well, and Hyperlinks need not have non-zero text offsets.
<gint>
)The "link-selected" signal is emitted by an AtkHyperText object when one of the hyperlinks associated with the object is selected.
<atk-hypertext>
) (link_index int
) ⇒ (ret <atk-hyperlink>
)Gets the link in this hypertext document at index link-index
- hypertext
- an
<atk-hypertext>
- link-index
- an integer specifying the desired link
- ret
- the link in this hypertext document at index link-index
<atk-hypertext>
) ⇒ (ret int
)Gets the number of links within this hypertext document.
- hypertext
- an
<atk-hypertext>
- ret
- the number of links within this hypertext document
<atk-hypertext>
) (char_index int
) ⇒ (ret int
)Gets the index into the array of hyperlinks that is associated with the character specified by char-index.
- hypertext
- an
<atk-hypertext>
- char-index
- a character index
- ret
- an index into the array of hyperlinks in hypertext, or -1 if there is no hyperlink associated with this character.