EditableText

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

Constructors

this
this(AtkEditableText* atkEditableText)

Sets our main struct and passes it to the parent class

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()
Undocumented in source. Be warned that the author may not have intended to support it.
getStruct
void* getStruct()

the main Gtk struct as a void*

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

Insert text at a given position.

pasteText
void pasteText(int position)

Paste text from clipboard to specified position.

setRunAttributes
int 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 string)

Set text contents of text.

Variables

atkEditableText
AtkEditableText* atkEditableText;

the main Gtk struct

Meta