|
| AImageDrawable (_< AImage > image) |
|
void | draw (IRenderer &render, const IDrawable::Params ¶ms) override |
| Called when the image needs to be displayed. It is assumed that the renderer is already set to the desired state (coordinates, color, etc.) More...
|
|
AImage | rasterize (glm::ivec2 imageSize) override |
| Converts possibly vector drawable to a raster image. More...
|
|
glm::ivec2 | getSizeHint () override |
|
virtual bool | isDpiDependent () const |
|
◆ draw()
Called when the image needs to be displayed. It is assumed that the renderer is already set to the desired state (coordinates, color, etc.)
Implements IDrawable.
◆ getSizeHint()
glm::ivec2 AImageDrawable::getSizeHint |
( |
| ) |
|
|
overridevirtual |
- Returns
- Size of the stored image. Can be ignored by the renderer. If the size is unknown, it can be {0, 0}
Implements IDrawable.
◆ rasterize()
AImage AImageDrawable::rasterize |
( |
glm::ivec2 |
imageSize | ) |
|
|
overridevirtual |
Converts possibly vector drawable to a raster image.
- Parameters
-
- Returns
- rasterized image
TODO Unimplemented for all drawables except raster image and svg
Reimplemented from IDrawable.
The documentation for this class was generated from the following files:
- aui.views/src/AUI/Util/AImageDrawable.h
- aui.views/src/AUI/Util/ImageDrawable.cpp