|
stmm-games-doc
0.32.0
|
Base class for tile drawing. More...

Classes | |
| struct | Init |
Public Types | |
| enum | FLOW_CONTROL { FLOW_CONTROL_CONTINUE = 0, FLOW_CONTROL_STOP = 1 } |
Public Member Functions | |
| virtual | ~StdThemeModifier () noexcept=default |
| virtual FLOW_CONTROL | drawTile (const Cairo::RefPtr< Cairo::Context > &refCc, StdThemeDrawingContext &oDc, const Tile &oTile, int32_t nPlayer, const std::vector< double > &aAniElapsed) noexcept=0 |
| Draw tile (with player skin). More... | |
| virtual void | registerTileSize (int32_t nW, int32_t nH) noexcept |
| Register tile size. More... | |
| virtual void | unregisterTileSize (int32_t nW, int32_t nH) noexcept |
| Unregister tile size. More... | |
| int32_t | getDebugTag () const noexcept |
| The debug tag. More... | |
Protected Member Functions | |
| StdThemeModifier (Init &&oInit) noexcept | |
| Constructor. More... | |
| StdTheme * | owner () noexcept |
| The theme. More... | |
| const StdTheme * | owner () const noexcept |
| The theme. More... | |
Base class for tile drawing.
|
explicitprotectednoexcept |
Constructor.
| oInit | The initialization data. |
|
virtualdefaultnoexcept |
|
pure virtualnoexcept |
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. |
Implemented in stmg::TextModifier, stmg::SelectAniModifier, stmg::SelectVarModifier, stmg::GrowModifier, stmg::FadeModifier, stmg::MaskModifier, stmg::IfElseModifier, stmg::SelectCaseModifier, stmg::RotateModifier, stmg::TileAniModifier, stmg::ContainerModifier, stmg::ImageModifier, stmg::FillModifier, stmg::AlphaModifier, stmg::NextSubPainterModifier, stmg::CaseModifier, stmg::SelectedImageModifier, and stmg::StopModifier.
|
inlinenoexcept |
The debug tag.
|
inlineprotectednoexcept |
The theme.
|
inlineprotectednoexcept |
The theme.
|
virtualnoexcept |
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 in stmg::MaskModifier, stmg::ContainerModifier, stmg::TileAniModifier, and stmg::ImageModifier.
|
virtualnoexcept |
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 in stmg::MaskModifier, stmg::ContainerModifier, stmg::TileAniModifier, and stmg::ImageModifier.
1.8.13