|
0.45.0
|
#include <iWidgetLabel.h>
Inherits igor::iWidget.
Additional Inherited Members | |
Static Public Member Functions inherited from igor::iWidget | |
| static iWidgetPtr | getKeyboardFocusWidget () |
| static IGOR_INLINE float32 | getScale () |
Static Public Attributes inherited from igor::iWidget | |
| static const iWidgetID | INVALID_WIDGET_ID = 0 |
Protected Member Functions inherited from igor::iWidget | |
| 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 () |
label widget
| igor::iWidgetLabel::iWidgetLabel | ( | const iWidgetPtr | parent = nullptr | ) |
ctor initializes member variables
| parent | optional parent |
|
virtualdefault |
does nothing
| int32 igor::iWidgetLabel::getMaxTextWidth | ( | ) |
| const iaString & igor::iWidgetLabel::getText | ( | ) | const |
| void igor::iWidgetLabel::setMaxTextWidth | ( | int32 | width | ) |
sets maximum text width
text that needs more space will automatically turn in to multi line text
| width | max width |
| void igor::iWidgetLabel::setText | ( | const iaString & | text | ) |
sets text
| text | the label text |
|
protected |
max label width
|
protected |
label text