mousetrap v0.2.0
|
style class manager singleton, keeps the global list of style classes updated More...
#include <style_manager.hpp>
Static Public Member Functions | |
static void | add_style_class (const StyleClass &) |
update / add a style class | |
static void | remove_style_class (const StyleClass &) |
remove style class | |
static StyleClass | get_style_class (const std::string &) |
retrieve style class | |
static void | add_css (const std::string &) |
run arbitrary css code | |
static std::string | define_color (const std::string &name, RGBA color) |
define a color, can be used by prefixing the given name with @ | |
static std::string | define_color (const std::string &name, HSVA color) |
define a color, can be used by prefixing the given name with @ | |
static std::string | color_to_css (RGBA) |
convert mousetrap color to css | |
static std::string | color_to_css (HSVA) |
convert mousetrap color to css | |
style class manager singleton, keeps the global list of style classes updated
|
static |
|
static |
update / add a style class
style | class |
References mousetrap::StyleClass::get_name(), remove_style_class(), and mousetrap::StyleClass::serialize().
Referenced by mousetrap::Widget::apply_style_class().
|
static |
|
static |
convert mousetrap color to css
color | RGBA |
References mousetrap::RGBA::a, mousetrap::RGBA::b, mousetrap::RGBA::g, and mousetrap::RGBA::r.
Referenced by color_to_css(), and define_color().
|
static |
define a color, can be used by prefixing the given name with @
name | |
value |
References define_color().
|
static |
define a color, can be used by prefixing the given name with @
name | |
value |
References add_css(), and color_to_css().
Referenced by define_color().
|
static |
|
static |