The ATK interface implemented by components containing user-editable text content.
<atk-editable-text>
should be implemented by UI components which contain
text which the user can edit, via the <atk-object>
corresponding to that
component (see <atk-object>
).
<atk-editable-text>
is a subclass of <atk-text>
, and as such, an
object which implements <atk-editable-text>
is by definition an
<atk-text>
implementor as well.
<atk-editable-text>
) (string mchars
)Set text contents of text.
- text
- an
<atk-editable-text>
- string
- string to set for text contents of text
<atk-editable-text>
) (string mchars
) (length int
) ⇒ (position int
)Insert text at a given position.
- text
- an
<atk-editable-text>
- string
- the text to insert
- length
- the length of text to insert, in bytes
- position
- The 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.
<atk-editable-text>
) (start_pos int
) (end_pos int
)Copy text from start-pos up to, but not including end-pos to the clipboard.
- text
- an
<atk-editable-text>
- start-pos
- start position
- end-pos
- end position
<atk-editable-text>
) (start_pos int
) (end_pos int
)Copy text from start-pos up to, but not including end-pos to the clipboard and then delete from the widget.
- text
- an
<atk-editable-text>
- start-pos
- start position
- end-pos
- end position