|
stmm-games-doc
0.32.0
|
Public Member Functions | |
| void | draw (const Cairo::RefPtr< Cairo::Context > &refCc, int32_t nPixX, int32_t nPixY, int32_t nPixW, int32_t nPixH) const noexcept |
| Draw frame in a given area using the minimum frame sizes. More... | |
| void | draw (const Cairo::RefPtr< Cairo::Context > &refCc, int32_t nPixX, int32_t nPixY, int32_t nPixW, int32_t nPixH, int32_t nPixFrameTop, int32_t nPixFrameBottom, int32_t nPixFrameLeft, int32_t nPixFrameRight) const noexcept |
| Draw frame in a given area with minimal margin sizes. More... | |
Public Attributes | |
| int32_t | m_nPixMinTop = 0 |
| Top margin in pixels. More... | |
| int32_t | m_nPixMinBottom = 0 |
| Bottom margin in pixels. More... | |
| int32_t | m_nPixMinLeft = 0 |
| Left margin in pixels. More... | |
| int32_t | m_nPixMinRight = 0 |
| Right margin in pixels. More... | |
| shared_ptr< Image > | m_refBaseImg |
| The "bakground" image, all other images are on top of it. More... | |
| shared_ptr< Image > | m_refTopLeftImg |
| Can be null. More... | |
| shared_ptr< Image > | m_refTopImg |
| Can be null. More... | |
| shared_ptr< Image > | m_refTopRightImg |
| < Can be null. More... | |
| shared_ptr< Image > | m_refLeftImg |
| Can be null. More... | |
| shared_ptr< Image > | m_refCenterImg |
| Can be null. More... | |
| shared_ptr< Image > | m_refRightImg |
| Can be null. More... | |
| shared_ptr< Image > | m_refBottomLeftImg |
| Can be null. More... | |
| shared_ptr< Image > | m_refBottomImg |
| Can be null. More... | |
| shared_ptr< Image > | m_refBottomRightImg |
| Can be null. More... | |
Frame of images.
Example: given a rectangle of size 14 x 7 pixels nPixFrameTop = 1 nPixFrameBottom = 2 nPixFrameLeft = 2 nPixFrameRight = 3
AABBBBBBBBBCCC DDeeeeeeeeeFFF DDeeeeeeeeeFFF DDeeeeeeeeeFFF DDeeeeeeeeeFFF GGHHHHHHHHHIII GGHHHHHHHHHIII
A: pixels painted by m_refTopLeftImg B: pixels painted by m_refTopImg C: pixels painted by m_refTopRightImg D: pixels painted by m_refLeftImg e: pixels painted by m_refCenterImg F: pixels painted by m_refRightImg G: pixels painted by m_refBottomLeftImg H: pixels painted by m_refBottomImg I: pixels painted by m_refBottomRightImg
|
noexcept |
Draw frame in a given area using the minimum frame sizes.
| refCc | The context. Cannot be null. |
| nPixX | The area x in pixels. |
| nPixY | The area y in pixels. |
| nPixW | The area width in pixels. Must be positive. |
| nPixH | The area height in pixels. Must be positive. |
|
noexcept |
Draw frame in a given area with minimal margin sizes.
| refCc | The context. Cannot be null. |
| nPixX | The area x in pixels. |
| nPixY | The area y in pixels. |
| nPixW | The area width in pixels. Must be positive. |
| nPixH | The area height in pixels. Must be positive. |
| nPixFrameTop | Top margin size in pixels. Cannnot be negative. If < m_nPixMinTop, m_nPixMinTop is used. |
| nPixFrameBottom | Bottom margin size in pixels. Cannnot be negative. If < m_nPixMinBottom, m_nPixMinBottom is used. |
| nPixFrameLeft | Left margin size in pixels. Cannnot be negative. If < m_nPixMinLeft, m_nPixMinLeft is used. |
| nPixFrameRight | Right margin size in pixels. Cannnot be negative. If < m_nPixMinRight, m_nPixMinRight is used. |
| int32_t stmg::Frame::m_nPixMinBottom = 0 |
Bottom margin in pixels.
Default: 0.
| int32_t stmg::Frame::m_nPixMinLeft = 0 |
Left margin in pixels.
Default: 0.
| int32_t stmg::Frame::m_nPixMinRight = 0 |
Right margin in pixels.
Default: 0.
| int32_t stmg::Frame::m_nPixMinTop = 0 |
Top margin in pixels.
Default: 0.
| shared_ptr<Image> stmg::Frame::m_refBaseImg |
The "bakground" image, all other images are on top of it.
Covers the whole rectangle. Can be null.
| shared_ptr<Image> stmg::Frame::m_refBottomImg |
Can be null.
| shared_ptr<Image> stmg::Frame::m_refBottomLeftImg |
Can be null.
| shared_ptr<Image> stmg::Frame::m_refBottomRightImg |
Can be null.
| shared_ptr<Image> stmg::Frame::m_refCenterImg |
Can be null.
| shared_ptr<Image> stmg::Frame::m_refLeftImg |
Can be null.
| shared_ptr<Image> stmg::Frame::m_refRightImg |
Can be null.
| shared_ptr<Image> stmg::Frame::m_refTopImg |
Can be null.
| shared_ptr<Image> stmg::Frame::m_refTopLeftImg |
Can be null.
| shared_ptr<Image> stmg::Frame::m_refTopRightImg |
< Can be null.
1.8.13