Mini Shell
3
���X � @ s6 d dl mZ d dlT d dlT dgZG dd� de�ZdS )� )�Atspi)�*� Hypertextc @ s( e Zd ZdZdd� Zdd� Zdd� ZdS ) r a]
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.
c C s t jj| j|�S )a
Get one of the Hyperlinks associated with this Hypertext object,
by index.
@param : linkIndex
an integer from 0 to getNLinks() - 1.
@return the Hyperlink in this Hypertext object.
)r r Zget_link�obj)�self�index� r �/usr/lib/python3.6/hypertext.py�getLink# s zHypertext.getLinkc C s t jj| j|�S )a�
Get the hyperlink index, if any, associated with a particular
character offset in the Hypertext object. For Hypertext implementors
without textual content, all hyperlinks are associated with character
offset '0'.
@return the index of the Hyperlink associated with character
offset characterIndex, or -1 if no Hyperlink is associated with
that character offset.
)r r Zget_link_indexr )r Zcharacter_indexr r r �getLinkIndex- s
zHypertext.getLinkIndexc C s t jj| j�S )z�
Query the hypertext object for the number of Hyperlinks it contains.
@return the number of Hyperlinks associated with this Hypertext
object, as a long integer.
)r r Zget_n_linksr )r r r r � getNLinks9 s zHypertext.getNLinksN)�__name__�
__module__�__qualname__�__doc__r
r r r r r r r s
N)Z
gi.repositoryr Z
pyatspi.utilsZpyatspi.interface�__all__Z interfacer r r r r �<module> s