atk.editable_text_mixin

Module for [EditableText] interface mixin

Templates 2

tmplEditableTextT()

The ATK interface implemented by components containing user-editable text content.

#AtkEditableText should be implemented by UI components which contain text which the user can edit, via the #AtkObject corresponding to that component (see #AtkObject).

#AtkEditableText is a subclass of #AtkText, and as such, an object which implements #AtkEditableText is by definition an #AtkText implementor as well.

See iface@AtkText

Functions
void copyText(int startPos, int endPos)

Copy text from start_pos up to, but not including end_pos to the clipboard.

Parameters

startPosstart position
endPosend position
void cutText(int startPos, int endPos)

Copy text from start_pos up to, but not including end_pos to the clipboard and then delete from the widget.

Parameters

startPosstart position
endPosend position
void deleteText(int startPos, int endPos)

Delete text start_pos up to, but not including end_pos.

Parameters

startPosstart position
endPosend position
void insertText(string string_, ref int position)

Insert text at a given position.

Parameters

string_the text to insert
positionThe caller initializes this to the position at which to insert the text. After the call it points at the position after the newly inserted text.
void pasteText(int position)

Paste text from clipboard to specified position.

Parameters

positionposition to paste
void setTextContents(string string_)

Set text contents of text.

Parameters

string_string to set for text contents of text
tmplEditableTextGidBuilderT()