0.45.0
![]() |
#include <iWidgetBoxLayout.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 |
grid layout widget
igor::iWidgetBoxLayout::iWidgetBoxLayout | ( | iWidgetBoxLayoutType | layoutType, |
const iWidgetPtr | parent = nullptr |
||
) |
ctor initializes member variables
layoutType | the layout type vertical or horizontal |
parent | optional parent |
|
default |
does nothing
|
overridevirtual |
adds a widget to this widget at the end of the layout
widget | the child widget to be added |
Reimplemented from igor::iWidget.
uint32 igor::iWidgetBoxLayout::getSpacing | ( | ) | const |
int32 igor::iWidgetBoxLayout::getStretchIndex | ( | ) | const |
|
overridevirtual |
removes a child widget from this widget
widget | the child widget to be removed |
Reimplemented from igor::iWidget.
void igor::iWidgetBoxLayout::setSpacing | ( | uint32 | spacing | ) |
sets spacing between children
spacing | the spacing in pixels |
void igor::iWidgetBoxLayout::setStretchIndex | ( | int32 | index | ) |
sets stretch index
index | the stretch index. <0 for no stretch |