Struct · aurore
aurore::ThemeImage
On this page
#include <aurore/core/theme_image.hpp>
struct aurore::ThemeImageDescription
A picture a theme file names (its background_image, its logo, icons, preview, an app's image slots): a texture made from it, at most MAX_WIDTH x MAX_HEIGHT (or its options' maxSide). Only the UI thread reads or changes it.
Types 1
| Value |
|---|
LOADING |
READY |
FAILED |
Constructors 3
Functions 3
bool draw( NVGcontext *vg,float x,float y,float width,float height,BackgroundFit fit,const NVGcolor *tint = nullptr,float alpha = 1.0f,float corner = 0.0f) constDraws it in the box x, y, width, height: CONTAIN fits it whole, centred, its ratio kept; COVER fills the box, centred, cut at its edges, within a rounded rectangle of corner; TILE and CENTER as background_fit says. tint (a mask's colour, ThemeImageOptions::mask) multiplies its pixels; else drawn as is, at alpha. False, nothing drawn, while it is not ready.
Attributes 9
Read from Aurore's headers by Doxygen at each build · library/include