themerepository.h
70 #define CCV_REGISTER_THEME(X) static bool regTheme##X = canvascv::ThemeRepository::addTheme(#X, new X())
The ThemeRepository is used to add and get themes for Widget and Shape objects.
Definition: themerepository.h:22
static void applyCurrentTheme(Shape *shape)
used automatically by the ShapeFactory when creating a shape
static std::vector< std::string > availThemes()
get a list of available theme names
static bool addTheme(const std::string &name, Theme *theme)
addTheme add a Theme to the repository
static void setCurrentTheme(const std::string &name)
setCurrentTheme sets a previously added theme
static std::string getCurrentThemeName()
returns the current theme name
Generated by 1.8.11