0.45.0
![]() |
#include <iWidgetNumberChooser.h>
Inherits igor::iWidget.
Additional Inherited Members | |
![]() | |
static iWidgetPtr | getKeyboardFocusWidget () |
static IGOR_INLINE float32 | getScale () |
![]() | |
static const iWidgetID | INVALID_WIDGET_ID = 0 |
![]() | |
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 () |
![]() | |
bool | _selected = false |
bool | _isSelectable = false |
bool | _isMultiSelectionEnabled = false |
std::vector< iWidgetPtr > | _children |
int32 | _configuredMinWidth = 0 |
int32 | _configuredMinHeight = 0 |
iClickEvent | _click |
iMouseOffClickEvent | _mouseOffClick |
iContextMenuEvent | _contextMenu |
iDoubleClickEvent | _doubleClick |
iMouseOverEvent | _mouseOver |
iMouseOffEvent | _mouseOff |
iChangeEvent | _change |
iFocusEvent | _focus |
iWheelUpEvent | _wheelUp |
iWheelDownEvent | _wheelDown |
iSelectionChangedEvent | _selectionChanged |
iaString | _tooltip |
iaVector2f | _tooltipPos |
iaTime | _tooltipTime = iaTime(0) |
bool | _initTooltip = false |
uint32 | _zValue = 0 |
bool | _reactOnMouseWheel = true |
bool | _blockedEvents = false |
bool | _acceptOutOfBoundsClicks = false |
bool | _acceptDrop = false |
bool | _acceptDrag = false |
bool | _isMouseOver = false |
bool | _ignoreChildEventConsumption = false |
iaVector2f | _lastMousePos |
iaVector2f | _lastMousePressPos |
bool | _needRefresh = true |
number chooser widget
igor::iWidgetNumberChooser::iWidgetNumberChooser | ( | const iWidgetPtr | parent = nullptr | ) |
ctro initializes member variables
parent | optional parent |
|
virtualdefault |
does nothing
int32 igor::iWidgetNumberChooser::getAfterPoint | ( | ) | const |
iWidgetState igor::iWidgetNumberChooser::getButtonDownState | ( | ) | const |
iWidgetState igor::iWidgetNumberChooser::getButtonUpState | ( | ) | const |
const iaString & igor::iWidgetNumberChooser::getPostFix | ( | ) | const |
float32 igor::iWidgetNumberChooser::getValue | ( | ) |
void igor::iWidgetNumberChooser::setAfterPoint | ( | int32 | afterPoint | ) |
defines how many after points will be displayed
afterPoint | amount of digits after point |
sets min max boundings for number
min | minimum bounding for number |
max | maximum bounding for number |
void igor::iWidgetNumberChooser::setPostFix | ( | const iaString & | text | ) |
sets post fix that will be displayed right after the number
text | the post fix |
sets the stepping for up and down button
up | the increase value when up button get's clicked |
down | the decrese value when down button get's clicked |
sets the stepping for mouse wheel
up | the increase value when mouse wheel get's up |
down | the decrese value when mouse wheel get's down |
void igor::iWidgetNumberChooser::setValue | ( | float32 | value | ) |
sets the value
value | the value to set |