77 const NVGcolor* tint =
nullptr,
float alpha = 1.0f,
float corner = 0.0f)
const;
117 static std::shared_ptr<ThemeImage>
load(
const std::string& path,
int flags = 0);
137 static bool meanColor(
const std::string& path, NVGcolor* color);
148 static bool exists(
const std::string& path);
Definition theme_image.hpp:102
static std::shared_ptr< ThemeImage > load(const std::string &path, const ThemeImageOptions &options)
static bool meanColor(const std::string &path, NVGcolor *color)
static constexpr int MAX_HEIGHT
Definition theme_image.hpp:105
static std::shared_ptr< ThemeImage > load(const std::string &path, int flags=0)
static constexpr int ICON_SIZE
Definition theme_image.hpp:110
static bool knownMeanColor(const std::string &path, NVGcolor *color)
static constexpr int LOGO_SIZE
Definition theme_image.hpp:109
static bool exists(const std::string &path)
static Event< const ThemeImage * > * getLoadedEvent()
static constexpr int PREVIEW_SIZE
Definition theme_image.hpp:111
static constexpr int MAX_WIDTH
Definition theme_image.hpp:104
Definition actions.hpp:25
BackgroundFit
How a theme's background_image fills the window (background_fit)
Definition theme.hpp:72
Definition theme_image.hpp:34
bool mask
Definition theme_image.hpp:39
int flags
Definition theme_image.hpp:35
int maxSide
Definition theme_image.hpp:36
Definition theme_image.hpp:49
int maxSide
Definition theme_image.hpp:59
bool mask
Definition theme_image.hpp:60
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) const
bool ready() const
Definition theme_image.hpp:66
ThemeImage & operator=(const ThemeImage &)=delete
State
Definition theme_image.hpp:51
int width
Definition theme_image.hpp:63
int texture
Definition theme_image.hpp:62
State state
Definition theme_image.hpp:61
NVGcolor mean
Definition theme_image.hpp:64
int height
Definition theme_image.hpp:63
std::string path
Definition theme_image.hpp:57
int flags
Definition theme_image.hpp:58
ThemeImage(const ThemeImage &)=delete