|
stmm-games-doc
0.32.0
|
Widget alignment position and expansion behavior for one axis. More...
Public Types | |
| enum | ALIGN { ALIGN_FILL = 0, ALIGN_START = 1, ALIGN_CENTER = 2, ALIGN_END = 3 } |
| Widget alignment. More... | |
Public Member Functions | |
| WidgetAxisFit () noexcept | |
| Default constructor. More... | |
| WidgetAxisFit (bool bExpand, ALIGN eAlign) noexcept | |
| Constructor. More... | |
| double | getAlign () const noexcept |
| Returns the align as a from 0 to 1 or -1 if ALIGN_FILL. More... | |
| void | dump (int32_t nIndentSpaces) const noexcept |
| void | dump () const noexcept |
Static Public Member Functions | |
| static double | getAlign (ALIGN eAlign) noexcept |
| Returns the align as a from 0 to 1 or -1 if ALIGN_FILL. More... | |
Public Attributes | |
| bool | m_bExpand = false |
| Whether the widgets claims a share of extra available space in the container. More... | |
| ALIGN | m_eAlign = ALIGN_CENTER |
| The widget alignment. More... | |
Widget alignment position and expansion behavior for one axis.
|
inlinenoexcept |
Default constructor.
|
inlinenoexcept |
Constructor.
|
noexcept |
|
noexcept |
|
inlinenoexcept |
Returns the align as a from 0 to 1 or -1 if ALIGN_FILL.
|
inlinestaticnoexcept |
Returns the align as a from 0 to 1 or -1 if ALIGN_FILL.
| eAlign | The alignment. Must be valid. |
| bool stmg::WidgetAxisFit::m_bExpand = false |
Whether the widgets claims a share of extra available space in the container.
Default: false.
| ALIGN stmg::WidgetAxisFit::m_eAlign = ALIGN_CENTER |
The widget alignment.
Default: ALIGN_CENTER.
1.8.13