|
stmm-games-doc
0.32.0
|
Public Member Functions | |
| const shared_ptr< ThemeWidget > & | getRoot () const noexcept |
| Get the root theme widget. More... | |
| virtual void | dump (int32_t nIndentSpaces) const noexcept |
| void | dump () const noexcept |
| const shared_ptr< ThemeWidget > & | getWidgetNamed (const std::string &sName, int32_t nTeam, int32_t nMate) const noexcept |
| Find theme widget with a model with a certain name. More... | |
Protected Member Functions | |
| ThemeLayout (const shared_ptr< ThemeWidget > &refRootTW) noexcept | |
| Creates a layout. More... | |
| virtual | ~ThemeLayout () noexcept |
| void | reInit (const shared_ptr< ThemeWidget > &refRootTW) noexcept |
| Reinitializes a layout. More... | |
| void | recalcSizeFunctions (ThemeWidget *p0ReferenceThemeWidget) noexcept |
| Signals widgets in the layout to recalculate their size functions. More... | |
| void | sizeAndConfig (ThemeWidget *p0TW, int32_t nTileW, int32_t nLayoutConfig) noexcept |
| Sets the tile size of the widget and its configuration. More... | |
|
inlineprotectednoexcept |
Creates a layout.
Calls onAssignedToLayout() of each theme widget reachable from the root widget.
| refRootTW | The root widget. Cannot be null. |
|
inlineprotectedvirtualnoexcept |
|
virtualnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Get the root theme widget.
|
noexcept |
Find theme widget with a model with a certain name.
| sName | The name of the widget. |
| nTeam | The team of the widget. Is -1 if game widget. |
| nMate | The mate of the widget. Is -1 if game or team widget. |
|
protectednoexcept |
Signals widgets in the layout to recalculate their size functions.
The reference widget, who's size functions are already valid, can be used if the widget's size is relative to it. Calls onRecalcSizeFunctions() of each theme widget reachable from the root. ThemeWidget::getSizeFunctions() of the layout widgets might be invalid before this function is called by subclasses of ThemeLayout.
| p0ReferenceThemeWidget | The reference theme widget. Cannot be null. |
|
inlineprotectednoexcept |
Reinitializes a layout.
Calls onAssignedToLayout() of each theme widget reachable from the root widget. The old root is dropped.
| refRootTW | The root widget. Cannot be null. |
|
inlineprotectednoexcept |
Sets the tile size of the widget and its configuration.
| p0TW | The widget. Cannot be null. |
| nTileW | The tile size. Must be >0. |
| nLayoutConfig | The layout config. |
1.8.13