EditableTextT

#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 also: #AtkText

Members

Functions

copyText
void copyText(int startPos, int endPos)

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

cutText
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.

deleteText
void deleteText(int startPos, int endPos)

Delete text @start_pos up to, but not including @end_pos.

getEditableTextStruct
AtkEditableText* getEditableTextStruct(bool transferOwnership)

Get the main Gtk struct

insertText
void insertText(string str, int length, int* position)

Insert text at a given position.

pasteText
void pasteText(int position)

Paste text from clipboard to specified @position.

setRunAttributes
bool setRunAttributes(AtkAttributeSet* attribSet, int startOffset, int endOffset)

Sets the attributes for a specified range. See the ATK_ATTRIBUTE macros (such as #ATK_ATTRIBUTE_LEFT_MARGIN) for examples of attributes that can be set. Note that other attributes that do not have corresponding ATK_ATTRIBUTE macros may also be set for certain text widgets.

setTextContents
void setTextContents(string str)

Set text contents of @text.

Meta