41 void draw(NVGcontext* vg,
float x,
float y,
float width,
float height,
51 static bool glyph(NVGcontext* vg,
const std::string& name, NVGcolor color,
float width,
float height);
54 static const std::vector<std::string>&
names();
57 std::string icon =
"today";
86 void draw(NVGcontext* vg,
float x,
float y,
float width,
float height,
91 std::shared_ptr<aurore::ThemeImage> preview;
Definition cadran_icon.hpp:27
void setIcon(const std::string &name)
bool getStyleProperty(const std::string &name, aurore::StyleValue *value) override
"color" (setThemeColor, XML color="@theme/…")
void setColor(NVGcolor color)
static bool glyph(NVGcontext *vg, const std::string &name, NVGcolor color, float width, float height)
static const std::vector< std::string > & names()
Every icon's name but "mark" (what a theme's icon.<name> may replace).
void draw(NVGcontext *vg, float x, float y, float width, float height, aurore::Style style, aurore::FrameContext *ctx) override
static aurore::View * create()
bool setStyleProperty(const std::string &name, const aurore::StyleValue &value) override
Definition cadran_icon.hpp:73
CadranSwatch(Colors colors)
void draw(NVGcontext *vg, float x, float y, float width, float height, aurore::Style style, aurore::FrameContext *ctx) override
Definition frame_context.hpp:30
Simple wrapper around StyleValues for the array operator.
Definition style.hpp:115
retro_time_t Time
Definition time.hpp:31
Definition cadran_icon.hpp:76
NVGcolor ink
Definition cadran_icon.hpp:79
std::string motif
Definition cadran_icon.hpp:80
NVGcolor ring
Definition cadran_icon.hpp:78
std::string picture
"": the colours
Definition cadran_icon.hpp:81
NVGcolor background
Definition cadran_icon.hpp:77
Definition view_style.hpp:41