atk.Hypertextthe ATK interface which provides standard mechanism for
manipulating hyperlinks. Synopsisatk.Hypertextgobject.GInterfaceget_linklink_indexget_n_linksget_link_indexchar_indexatk.Hypertext Signal Prototypes"link-selected"callbackatkhypertextindexuser_param1...DescriptionAn interface used for objects which implement linking between
multiple resource or content locations, or multiple 'markers' within a
single document. A atk.Hypertext
instance is associated with one or more atk.Hyperlink
objects, which are associated with particular offsets within the atk.Hypertext's
included content. While this interface is derived from atk.Text, there is
no requirement that atk.Hypertext
instances have textual content; they may implement atk.Image as
well, and atk.Hyperlink
objects need not have non-zero text offsets.Methodsatk.Hypertext.get_linkget_linklink_indexlink_index :an integer specifying the desired
linkReturns :the link in this hypertext document at
index link_indexGets the link in this hypertext document at index
link_indexatk.Hypertext.get_n_linksget_n_linksReturns :the number of links within this hypertext
documentGets the number of links within this hypertext document.atk.Hypertext.get_link_indexget_link_indexchar_indexchar_index :a character indexReturns :an index into the array of hyperlinks in the
hypertextGets the index into the array of hyperlinks that is associated
with the character specified by char_index, or
-1 if there is no hyperlink associated with this character.SignalsThe "link-selected" atk.Hypertext Signalcallbackatkhypertextindexuser_param1...atkhypertext :the object which received the
signal.index :the index of the hyperlink which is
selecteduser_param1 :the first user parameter (if any) specified
with the connect()
method... :additional user parameters (if any)The "link-selected" signal is emitted by an atk.HyperText
object when one of the hyperlinks associated with the object is
selected.