Ë
    1f  ã                   ó@   — d dl ­ d dlmZ d dl­ dgZ G d„ de«      Zy)é    )Ú*)ÚAtspiÚEditableTextc                   ó4   — e Zd ZdZd„ Zd„ Zd„ Zd„ Zd„ Zd„ Z	y)	r   a  
        Derived from interface Text, EditableText provides methods for
        modifying textual content of components which support editing.
        EditableText also interacts with the system clipboard via copyText,
        cutText, and pasteText.
        c                 óX   — t         j                  j                  | j                  ||«      S )av  
                Copy a range of text into the system clipboard. 
                @param : startPos
                the character offset of the first character in the range of text
                being copied. 
                @param : endPos
                the offset of the first character past the end of the range of
                text being copied.
                )r   r   Ú	copy_textÚobj©ÚselfÚstartÚends      ú6/usr/lib/python3/dist-packages/pyatspi/editabletext.pyÚcopyTextzEditableText.copyText!   s#   € ô ×)Ñ)×3Ñ3°D·H±H¸eÀSÓIÐIó    c                 óX   — t         j                  j                  | j                  ||«      S )aò  
                Excise a range of text from a Text object, copying it into the
                system clipboard. 
                @param : startPos
                the character offset of the first character in the range of text
                being cut. 
                @param : endPos
                the offset of the first character past the end of the range of
                text being cut. 
                @return True if the text was successfully cut, False otherwise.
                )r   r   Úcut_textr	   r
   s      r   ÚcutTextzEditableText.cutText-   s#   € ô ×)Ñ)×2Ñ2°4·8±8¸UÀCÓHÐHr   c                 óX   — t         j                  j                  | j                  ||«      S )a  
                Excise a range of text from a Text object without copying it
                into the system clipboard. 
                @param : startPos
                the character offset of the first character in the range of text
                being deleted. 
                @param : endPos
                the offset of the first character past the end of the range of
                text being deleted. 
                @return True if the text was successfully deleted, False otherwise.
                )r   r   Údelete_textr	   r
   s      r   Ú
deleteTextzEditableText.deleteText;   s#   € ô ×)Ñ)×5Ñ5°d·h±hÀÀsÓKÐKr   c                 óZ   — t         j                  j                  | j                  |||«      S )a;  
                Insert new text contents into an existing text object at a given
                location, while retaining the old contents. 
                @param : position
                the character offset into the Text implementor's content at which
                the new content will be inserted. 
                @param : text
                a UTF-8 string of which length characters will be inserted into
                the text object's text buffer. 
                @param : length
                the number of characters of text to insert. If the character
                count of text is less than or equal to length, the entire contents
                of text will be inserted.
                @return True if the text content was successfully inserted, False
                otherwise.
                )r   r   Úinsert_textr	   )r   ÚpositionÚtextÚlengths       r   Ú
insertTextzEditableText.insertTextI   s&   € ô" ×)Ñ)×5Ñ5°d·h±hÀÈ$ÐPVÓWÐWr   c                 óV   — t         j                  j                  | j                  |«      S )a“  
                Copy the text contents of the system clipboard, if any, into
                a Text object, inserting it at a particular character offset.
                @param : position
                the character offset before which the text will be inserted.
                @return True if the text was successfully pasted into the Text
                object, False otherwise.
                )r   r   Ú
paste_textr	   )r   r   s     r   Ú	pasteTextzEditableText.pasteText\   s!   € ô ×)Ñ)×4Ñ4°T·X±X¸xÓHÐHr   c                 óV   — t         j                  j                  | j                  |«      S )at  
                Replace the text contents with a new string, discarding the old
                contents.
                @param : newContents
                a UTF-8 string with which the text object's contents will be
                replaced. 
                @return True if the text content was successfully changed, False
                otherwise.
                )r   r   Úset_text_contentsr	   )r   Úcontentss     r   ÚsetTextContentszEditableText.setTextContentsg   s!   € ô ×)Ñ)×;Ñ;¸D¿H¹HÀhÓOÐOr   N)
Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r#   © r   r   r   r      s+   „ ñ	ò
	Jò	Iò	Lò	Xò&		Ió
	Pr   N)Úpyatspi.textÚgi.repositoryr   Úpyatspi.utilsÚ__all__ÚTextr   r(   r   r   ú<module>r.      s,   ðô Ý Ü ð ð€ôXP�4õ XPr   