|
stmm-games-doc
0.32.0
|
Cairo cached surfaces for an image. More...
Public Member Functions | |
| void | addSize (int32_t nW, int32_t nH) noexcept |
| Tells to keep a ref counted cache with a certain size. More... | |
| void | subSize (int32_t nW, int32_t nH) noexcept |
| Decrement the ref count for a cached surface. More... | |
| const Cairo::RefPtr< Cairo::Surface > & | getCachedRgba (int32_t nW, int32_t nH, bool &bCreated) noexcept |
| Returns a cached rgba surface. More... | |
| Cairo::RefPtr< Cairo::Surface > | getRgba (int32_t nW, int32_t nH, bool &bCreated) noexcept |
| Return a rgba (possibly cached) surface of a certain size. More... | |
| const Cairo::RefPtr< Cairo::Surface > & | getCachedA (int32_t nW, int32_t nH, bool &bCreated) noexcept |
| Returns a cached alpha channel surface. More... | |
| Cairo::RefPtr< Cairo::Surface > | getA (int32_t nW, int32_t nH, bool &bCreated) noexcept |
| Return a possibly cached alpha channel surface of a certain size. More... | |
| void | clear () noexcept |
| Clears all ref counted sized surfaces. More... | |
Cairo cached surfaces for an image.
Keeps sized surfaces to avoid redrawing the same image. The creation is done lazily.
|
noexcept |
|
noexcept |
Clears all ref counted sized surfaces.
Also resets all the ref counts.
|
noexcept |
Return a possibly cached alpha channel surface of a certain size.
| nW | The width of the surface in pixel. |
| nH | The height of the surface in pixel. |
| bCreated | Whether the surface had to be created. |
|
noexcept |
Returns a cached alpha channel surface.
| nW | The width in pixels. |
| nH | The height in pixels. |
| bCreated | Whether the surface had to be created. |
|
noexcept |
Returns a cached rgba surface.
| nW | The width in pixels. |
| nH | The height in pixels. |
| bCreated | Whether the surface had to be created. |
|
noexcept |
Return a rgba (possibly cached) surface of a certain size.
| nW | The width of the cached surface. |
| nH | The height of the cached surface. |
| bCreated | Whether the surface had to be created. |
|
noexcept |
Decrement the ref count for a cached surface.
If the ref count reaches 0 the cached surface is removed.
| nW | The width of the cached surface(s). |
| nH | The height of the cached surface(s). |
1.8.13