|
stmm-games-doc
0.32.0
|

Classes | |
| class | RuntimeVariablesEnv |
Public Member Functions | |
| virtual | ~Theme () noexcept=default |
| virtual NSize | getBestTileSize (int32_t nHintTileW) const noexcept=0 |
| Get best tile size given a requested width. More... | |
| virtual double | getTileWHRatio () const noexcept=0 |
| The tile width to height ratio. More... | |
| virtual const Named & | getNamed () const noexcept=0 |
| The named values. More... | |
| virtual shared_ptr< ThemeWidget > | createWidget (const shared_ptr< GameWidget > &refGameWidget, double fTileWHRatio, const Glib::RefPtr< Pango::Context > &refFontContext) noexcept=0 |
| Create a theme widget from a game widget (the model). More... | |
| virtual shared_ptr< ThemeContext > | createContext (NSize oTileWH, bool bRegister, double fSoundScaleX, double fSoundScaleY, double fSoundScaleZ, const Glib::RefPtr< Pango::Context > &refFontContext, RuntimeVariablesEnv *p0RuntimeVariablesEnv) noexcept=0 |
| Create a theme context. More... | |
|
virtualdefaultnoexcept |
|
pure virtualnoexcept |
Create a theme context.
The bRegister value tells to the theme whether the tile size of the context is stable and will be used often. If true images and possibly other data structures might be cached.
| oTileWH | The initial tile width and height in pixels. |
| bRegister | Whether the tile size of the context should be registered. |
| fSoundScaleX | The tile to sound reference system scale for the x axis. |
| fSoundScaleY | The tile to sound reference system scale for the y axis. |
| fSoundScaleZ | The tile to sound reference system scale for the z axis. |
| refFontContext | The font context. Cannot be null. |
| p0RuntimeVariablesEnv | Cannot be null. |
Implemented in stmg::StdTheme.
|
pure virtualnoexcept |
Create a theme widget from a game widget (the model).
| refGameWidget | The game widget. Cannot be null. |
| fTileWHRatio | The tile wh ratio. Must be positive. |
| refFontContext | The font context. Cannot be null. |
Implemented in stmg::StdTheme.
|
pure virtualnoexcept |
Get best tile size given a requested width.
| nHintTileW | The requested width. If 0 the minimum size is returned. |
Implemented in stmg::StdTheme.
|
pure virtualnoexcept |
The named values.
Contains the strings relevant to the game.
Implemented in stmg::StdTheme.
|
pure virtualnoexcept |
The tile width to height ratio.
According to nTileW ~= fTileWHRatio * nTileH.
Implemented in stmg::StdTheme.
1.8.13