|
0.45.0
|
#include <iWidgetGridLayout.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 () |
Protected Attributes inherited from igor::iWidget | |
| 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::iWidgetGridLayout::iWidgetGridLayout | ( | const iWidgetPtr | parent = nullptr | ) |
ctor initializes member variables
| parent | optional parent |
|
default |
does nothing
|
virtual |
adds a child widget to this widget at position 0, 0
| widget | the child widget to be added |
Reimplemented from igor::iWidget.
| void igor::iWidgetGridLayout::addWidget | ( | iWidgetPtr | widget, |
| int32 | col, | ||
| int32 | row, | ||
| const std::any & | userData = std::any() |
||
| ) |
add widget and set it at given position
| widget | the widget pointer |
| col | column index |
| row | row index |
| userData | any kind of data |
| void igor::iWidgetGridLayout::appendColumns | ( | uint32 | count | ) |
appends columns on the right of the grid
| count | the amount of columns to be added |
| void igor::iWidgetGridLayout::appendRows | ( | uint32 | count | ) |
appends rows at the bottom of the grid
| count | the amount of rows to be added |
|
virtual |
clears the whole grid
Reimplemented from igor::iWidget.
| int32 igor::iWidgetGridLayout::getBorder | ( | ) |
| int32 igor::iWidgetGridLayout::getCellSpacing | ( | ) |
| uint32 igor::iWidgetGridLayout::getColumnCount | ( | ) |
| bool igor::iWidgetGridLayout::getEmptyCellsSelectable | ( | ) | const |
| iSelectionMode igor::iWidgetGridLayout::getHighlightMode | ( | ) | const |
| int32 igor::iWidgetGridLayout::getMouseOverColumn | ( | ) | const |
| int32 igor::iWidgetGridLayout::getMouseOverRow | ( | ) | const |
| uint32 igor::iWidgetGridLayout::getRowCount | ( | ) |
| int32 igor::iWidgetGridLayout::getSelectedColumn | ( | ) | const |
if not selected it will return -1
| int32 igor::iWidgetGridLayout::getSelectedRow | ( | ) | const |
if not selected it will return -1
| const std::any igor::iWidgetGridLayout::getSelectedUserData | ( | ) |
| iSelectionMode igor::iWidgetGridLayout::getSelectMode | ( | ) | const |
| int32 igor::iWidgetGridLayout::getStretchColumn | ( | ) | const |
| int32 igor::iWidgetGridLayout::getStretchRow | ( | ) | const |
| col | specfied column |
| row | specfied row |
| void igor::iWidgetGridLayout::insertColumn | ( | uint32 | at | ) |
insert a single column before given position
| at | the given position |
| void igor::iWidgetGridLayout::insertRow | ( | uint32 | at | ) |
insert a single row before given position
| at | the given position |
| col | the column of the cell |
| row | the row of the cell |
| bool igor::iWidgetGridLayout::isSelected | ( | ) |
| void igor::iWidgetGridLayout::removeColumn | ( | uint32 | at | ) |
removed column at given position
| at | the given position |
| void igor::iWidgetGridLayout::removeRow | ( | uint32 | at | ) |
removes row at given position
| at | the given position |
|
virtual |
removes a child widget from this widget regardless of it's position
the former position will be cleared
| widget | the child widget to be removed |
Reimplemented from igor::iWidget.
| void igor::iWidgetGridLayout::setBorder | ( | int32 | border | ) |
sets border
| void igor::iWidgetGridLayout::setCellSpacing | ( | int32 | cellSpacing | ) |
sets cell spacing
| void igor::iWidgetGridLayout::setEmptyCellsSelectable | ( | bool | emptyCellsSelectable = true | ) |
sets wether or not an empty cell is selectable
only active for iSelectionMode::Cell
| emptyCellsSelectable | if true empty cells are selectable (default is false) |
| void igor::iWidgetGridLayout::setHighlightMode | ( | iSelectionMode | highlightMode | ) |
sets highlight mode
| highlightMode | the mode of highlight |
| void igor::iWidgetGridLayout::setSelectMode | ( | iSelectionMode | selectMode | ) |
sets selection mode of grid
| selectMode | the mode of selection |
| void igor::iWidgetGridLayout::setStretchColumn | ( | int32 | col | ) |
defines which column will be stretched if the grid is horizontally stretched
| col | column number to be stretched |
| void igor::iWidgetGridLayout::setStretchRow | ( | int32 | row | ) |
defines which row will be stretched if the grid is vertically stretched
| row | row number to be stretched |
| void igor::iWidgetGridLayout::unselect | ( | ) |
unselects the grid