TextLine

An object of editable text.

Constructors

this
this()

Members

Functions

backspace
void backspace()

Removes a left char of cursor.

del
void del()

Removes a right char of cursor.

deselect
void deselect()
end
void end(bool selecting)

Moves cursor to end.

home
void home(bool selecting)

Moves cursor to home.

insert
void insert(dstring v)

Inserts text at cursor.

left
void left(bool selecting)

Moves cursor to left.

lock
void lock()

Locks editing.

moveCursor
void moveCursor(long i, bool selecting)

Moves cursor to relative index.

moveCursorTo
void moveCursorTo(long i, bool selecting)

Moves cursor to absolute index.

removeSelecting
void removeSelecting()

Removes the selected text.

right
void right(bool selecting)

Moves cursor to right.

selectAll
void selectAll()

Sets all text selected.

setText
void setText(dstring v)

Changes text.

unlock
void unlock()

Unlocks editing.

Properties

cursorIndex
cursorIndex [@property getter]

Index of cursor.

isLocked
isLocked [@property getter]

Checks if editing is locked.

isSelecting
isSelecting [@property getter]

Checks if text is selected.

leftText
leftText [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
rightText
rightText [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
selectedText
dstring selectedText [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
selectionIndex
selectionIndex [@property getter]

Index that selection is beginning.

text
text [@property getter]

Current text.

Variables

_cursorIndex
long _cursorIndex;
Undocumented in source.
_locked
bool _locked;
Undocumented in source.
_selectionIndex
long _selectionIndex;
Undocumented in source.
_text
dstring _text;
Undocumented in source.
onCursorMove
CursorMoveHandler onCursorMove;
onTextChange
TextChangeHandler onTextChange;

Meta