EditBehavior

Undocumented in source.

Members

Functions

attachTo
void attachTo(Widget widget)
Undocumented in source. Be warned that the author may not have intended to support it.
blinkInterval
void blinkInterval(double newInterval)

Set current cursor blink interval in seconds. newInterval must be greater than zero.

blinkInterval
double blinkInterval()

Get current cursor blink interval in seconds.

calcCharOffset
uint calcCharOffset(uint index)

Returns offset in pixels from the begining of text

calcTextXPos
void calcTextXPos()
Undocumented in source. Be warned that the author may not have intended to support it.
charEntered
bool charEntered(Widget widget, CharEnterEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
copy
dstring copy()
Undocumented in source. Be warned that the author may not have intended to support it.
deselect
void deselect()
Undocumented in source. Be warned that the author may not have intended to support it.
focusGained
bool focusGained(Widget widget, FocusGainEvent event)
Undocumented in source.
focusLost
bool focusLost(Widget widget, FocusLoseEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
handleDraw
bool handleDraw(Widget widget, DrawEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
isEditable
void isEditable(bool editable)
Undocumented in source. Be warned that the author may not have intended to support it.
isEditable
bool isEditable()
Undocumented in source. Be warned that the author may not have intended to support it.
keyPressed
bool keyPressed(Widget widget, KeyPressEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
keyReleased
bool keyReleased(Widget widget, KeyReleaseEvent )
Undocumented in source. Be warned that the author may not have intended to support it.
moveCursorLeft
void moveCursorLeft()
Undocumented in source. Be warned that the author may not have intended to support it.
moveCursorRight
void moveCursorRight()
Undocumented in source. Be warned that the author may not have intended to support it.
moveCursorToClickPos
void moveCursorToClickPos(ivec2 pointerPosition)
Undocumented in source.
normalizeSelection
void normalizeSelection()

Swaps _selectionStart and _selectionEnd if _selectionStart > _selectionEnd. Should be used before text editing.

onCursorBlink
double onCursorBlink(double timesUpdated)

Used as a callback to blink timer.

onCursorMove
void onCursorMove()

If cursor changes its position the blinking delay must be reset.

paste
void paste(dstring text)
Undocumented in source. Be warned that the author may not have intended to support it.
pointerMoved
bool pointerMoved(Widget widget, PointerMoveEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
pointerPressed
bool pointerPressed(Widget widget, PointerPressEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
pointerReleased
bool pointerReleased(Widget widget, PointerReleaseEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
removeSelectedText
void removeSelectedText()
Undocumented in source. Be warned that the author may not have intended to support it.
select
void select(size_t start, size_t end)
Undocumented in source. Be warned that the author may not have intended to support it.
selectedText
dstring selectedText()
Undocumented in source. Be warned that the author may not have intended to support it.
setCursorPos
void setCursorPos(size_t position)
Undocumented in source. Be warned that the author may not have intended to support it.
text
dstring text()
Undocumented in source. Be warned that the author may not have intended to support it.
text
dstring text(dstring newText)
Undocumented in source. Be warned that the author may not have intended to support it.
updateSelection
void updateSelection()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_context
GuiContext _context;
Undocumented in source.
_textLine
TextLine _textLine;
Undocumented in source.

Inherited Members

From LabelBehavior

attachTo
void attachTo(Widget widget)
Undocumented in source. Be warned that the author may not have intended to support it.
onTextChanged
void onTextChanged(FlexibleObject obj, Variant newText)
Undocumented in source. Be warned that the author may not have intended to support it.
handleDraw
bool handleDraw(Widget widget, DrawEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta