|
stmm-games-doc
0.32.0
|
Public Member Functions | |
| Layout (const shared_ptr< GameWidget > &refRootGW, const shared_ptr< LevelShowWidget > &refReferenceLevelShow, bool bAllTeamsInOneLevel, bool bSubshows, const shared_ptr< AppPreferences > &refPrefs) noexcept | |
| Layout constructor. More... | |
| const shared_ptr< GameWidget > & | getRoot () const noexcept |
| Get the root widget. More... | |
| const shared_ptr< LevelShowWidget > & | getReferenceShow () const noexcept |
| The reference (sub)show used for layout calculations. More... | |
| bool | isAllTeamsInOneLevel () const noexcept |
| bool | isSubshows () const noexcept |
| Tells whether subshows or shows of the stage are shown. More... | |
| bool | isValid () const noexcept |
| Tells whether the layout is valid. More... | |
| const std::string & | getErrorString () const noexcept |
| The error string for an invalid layout. More... | |
| const shared_ptr< GameWidget > & | getWidgetNamed (const std::string &sName, int32_t nTeam, int32_t nMate) const noexcept |
| Find a named widget. More... | |
| const shared_ptr< AppPreferences > & | getPrefs () noexcept |
| The preferences. More... | |
| void | dump (int32_t nIndentSpaces) const noexcept |
| void | dump () const noexcept |
Protected Member Functions | |
| void | reInit (const shared_ptr< GameWidget > &refRootGW, const shared_ptr< LevelShowWidget > &refReferenceLevelShow, bool bAllTeamsInOneLevel, bool bSubshows, const shared_ptr< AppPreferences > &refPrefs) noexcept |
| Initialization. More... | |
|
noexcept |
Layout constructor.
If parameter refReferenceLevelShow is null, the first LevelShowWidget found in the refRootGW tree is used. If it is not null it must be in the refRootGW tree.
If bSubshows is false then the stage(s) is shown.
| refRootGW | The root widget. Cannot be null. |
| refReferenceLevelShow | The reference level show. Can be null. |
| bAllTeamsInOneLevel | Whether all teams play on same stage. |
| bSubshows | Whether player's subshow is shown. |
| refPrefs | The app preferences. Cannot be null. |
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
The error string for an invalid layout.
|
inlinenoexcept |
The preferences.
|
inlinenoexcept |
The reference (sub)show used for layout calculations.
All sizes of widgets in the layout are factors of the size of this widget.
|
inlinenoexcept |
Get the root widget.
|
noexcept |
Find a named widget.
| 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. |
|
inlinenoexcept |
|
inlinenoexcept |
Tells whether subshows or shows of the stage are shown.
|
inlinenoexcept |
Tells whether the layout is valid.
|
protectednoexcept |
Initialization.
Subclass this class and make this public for recycling of objects.
| refRootGW | The root widget. Cannot be null. |
| refReferenceLevelShow | The reference level show. Can be null. |
| bAllTeamsInOneLevel | Whether all teams play on same stage. |
| bSubshows | Whether player's subshow is shown. |
| refPrefs | The app preferences. Cannot be null. |
1.8.13