|
stmm-games-doc
0.32.0
|
Draws the image selected by a tile animation value. More...

Classes | |
| struct | Init |
| struct | LocalInit |
Public Member Functions | |
| TileAniModifier (Init &&oInit) noexcept | |
| Constructor. More... | |
| FLOW_CONTROL | drawTile (const Cairo::RefPtr< Cairo::Context > &refCc, StdThemeDrawingContext &oDc, const Tile &oTile, int32_t nPlayer, const std::vector< double > &aAniElapsed) noexcept override |
| Draw tile (with player skin). More... | |
| void | registerTileSize (int32_t nW, int32_t nH) noexcept override |
| Register tile size. More... | |
| void | unregisterTileSize (int32_t nW, int32_t nH) noexcept override |
| Unregister tile size. More... | |
Public Member Functions inherited from stmg::StdThemeModifier | |
| virtual | ~StdThemeModifier () noexcept=default |
| int32_t | getDebugTag () const noexcept |
| The debug tag. More... | |
Additional Inherited Members | |
Public Types inherited from stmg::StdThemeModifier | |
| enum | FLOW_CONTROL { FLOW_CONTROL_CONTINUE = 0, FLOW_CONTROL_STOP = 1 } |
Protected Member Functions inherited from stmg::StdThemeModifier | |
| StdThemeModifier (Init &&oInit) noexcept | |
| Constructor. More... | |
| StdTheme * | owner () noexcept |
| The theme. More... | |
| const StdTheme * | owner () const noexcept |
| The theme. More... | |
Draws the image selected by a tile animation value.
|
explicitnoexcept |
Constructor.
| oInit | The initialization data. |
|
overridevirtualnoexcept |
Draw tile (with player skin).
| refCc | The cairo context. Cannot be null. |
| oDc | The theme drawing context. Cannot be null. |
| oTile | The tile to draw. |
| nPlayer | The player the tile "belongs" to. -1 means no player. Must be >= -1. |
| aAniElapsed | The tile animations current value. |
Implements stmg::StdThemeModifier.
|
overridevirtualnoexcept |
Register tile size.
Make sure to unregisterTileSize() when done with this size.
This method should be implemented to cache images for frequently used sizes.
Subclasses of ContainerModifier should not propagate this to contained Modifier instances since StdTheme does it automatically.
| nW | The tile width. Must be positive. |
| nH | The tile height. Must be positive. |
Reimplemented from stmg::StdThemeModifier.
|
overridevirtualnoexcept |
Unregister tile size.
Called when a tile size no longer needed. See registerTileSize().
| nW | The tile width. Must be positive. |
| nH | The tile height. Must be positive. |
Reimplemented from stmg::StdThemeModifier.
1.8.13