0.45.0
![]() |
#include <iWidgetLineTextEdit.h>
Inherits igor::iWidget.
Protected Member Functions | |
bool | onASCII (const iEventKeyASCII &event) override |
virtual bool | onKeyDown (const iEventKeyDown &event) override |
virtual bool | onKeyUp (const iEventKeyUp &event) override |
virtual void | onGainedKeyboardFocus () override |
virtual void | onLostKeyboardFocus () override |
void | handleChanges () |
![]() | |
void | clearChildren () |
void | updateMinSize (int32 width, int32 height) |
void | setParent (iWidgetPtr parent) |
void | setKeyboardFocus () |
void | resetKeyboardFocus () |
void | setClientArea (int32 left, int32 right, int32 top, int32 bottom) |
const iaVector2f & | getLastMousePos () const |
iWidget (iWidgetType type, iWidgetKind kind, const iWidgetPtr parent=nullptr) | |
virtual | ~iWidget () |
virtual bool | onEvent (iEvent &event) |
virtual bool | onMouseWheel (const iEventMouseWheel &event) |
virtual bool | onMouseKeyDown (const iEventMouseKeyDown &event) |
virtual bool | onMouseDoubleClick (const iEventMouseKeyDoubleClick &event) |
virtual bool | onMouseKeyUp (const iEventMouseKeyUp &event) |
virtual void | onMouseMove (const iEventMouseMove &event) |
virtual bool | onASCII (const iEventKeyASCII &event) |
virtual bool | onKeyDown (const iEventKeyDown &event) |
virtual bool | onKeyUp (const iEventKeyUp &event) |
virtual void | onLostKeyboardFocus () |
virtual void | onGainedKeyboardFocus () |
virtual void | calcMinSize () |
virtual void | updateAlignment (int32 clientWidth, int32 clientHeight) |
virtual void | calcChildOffsets (std::vector< iaRectanglef > &offsets) |
virtual void | onDragEnter (iDrag &drag) |
virtual void | onDragMove (iDrag &drag, const iaVector2f &mousePos) |
virtual void | onDragLeave (iDrag &drag) |
virtual void | onDrop (const iDrag &drag, const iaVector2f &mousePos) |
virtual void | onDrag () |
virtual void | onRefresh () |
Additional Inherited Members | |
![]() | |
static iWidgetPtr | getKeyboardFocusWidget () |
static IGOR_INLINE float32 | getScale () |
![]() | |
static const iWidgetID | INVALID_WIDGET_ID = 0 |
single line text edit widget
igor::iWidgetLineTextEdit::iWidgetLineTextEdit | ( | const iWidgetPtr | parent = nullptr | ) |
initializes member variables
parent | optional parent |
|
virtualdefault |
deinitializes member variables
void igor::iWidgetLineTextEdit::decCursorPos | ( | ) |
decrease cursor pos by one
uint64 igor::iWidgetLineTextEdit::getCursorPos | ( | ) | const |
uint64 igor::iWidgetLineTextEdit::getCursorPosPix | ( | ) | const |
iHorizontalAlignment igor::iWidgetLineTextEdit::getHorizontalTextAlignment | ( | ) | const |
int32 igor::iWidgetLineTextEdit::getMaxTextLength | ( | ) |
const iaString & igor::iWidgetLineTextEdit::getText | ( | ) | const |
iVerticalAlignment igor::iWidgetLineTextEdit::getVerticalTextAlignment | ( | ) | const |
|
protected |
triggers a change event if the content has changed
void igor::iWidgetLineTextEdit::incCursorPos | ( | ) |
increase cursor pos by one
bool igor::iWidgetLineTextEdit::isWriteProtected | ( | ) |
\retruns if text edit is write protected
|
overrideprotectedvirtual |
handles incoming acsii codes from keyboard
event | the key ascii event |
Reimplemented from igor::iWidget.
|
overrideprotectedvirtual |
handles gained kayboard focus
Reimplemented from igor::iWidget.
|
overrideprotectedvirtual |
handles incoming released key events
event | the key down event |
Reimplemented from igor::iWidget.
|
overrideprotectedvirtual |
handles incoming released key events
event | the key up event |
Reimplemented from igor::iWidget.
|
overrideprotectedvirtual |
handles lost keyboard focus
Reimplemented from igor::iWidget.
void igor::iWidgetLineTextEdit::setChangeEventAtOnce | ( | ) |
set up that the change event will only triggered if you press enter
void igor::iWidgetLineTextEdit::setChangeEventOnEnterAndLostFocus | ( | ) |
set up that the change event will be triggered for every change in the text field
void igor::iWidgetLineTextEdit::setCursorPos | ( | uint64 | cursorPos | ) |
sets cursor pos
cursor pos will be clamped by current text size
cursorPos | the new cursor pos |
void igor::iWidgetLineTextEdit::setHorizontalTextAlignment | ( | iHorizontalAlignment | align | ) |
sets horrizotnal text aligment
align | the horizontal allignment of the text |
void igor::iWidgetLineTextEdit::setMaxTextLength | ( | int32 | chars | ) |
sets the text max length in characters
chars | number of characters |
void igor::iWidgetLineTextEdit::setText | ( | const iaString & | text | ) |
sets the text
text | the text to be set |
void igor::iWidgetLineTextEdit::setVerticalTextAlignment | ( | iVerticalAlignment | valign | ) |
sets vertical text aligment
valign | the vertical allignment of the text |
void igor::iWidgetLineTextEdit::setWriteProtected | ( | bool | writeProtected | ) |
sets text edit write protected
writeProtected | true: text edit will be write protected |
|
protected |
the horizontal alignment
|
protected |
the text
|
protected |
backup text
|
protected |
flat to handle change event trigger behaviour
|
protected |
the vertical alignment