mousetrap v0.2.0
|
class that collects css information More...
#include <style_manager.hpp>
Public Member Functions | |
StyleClass (const std::string &name) | |
construct with name | |
StyleClass (detail::StyleClassInternal *internal) | |
construct from internal | |
~StyleClass () | |
destructor | |
operator NativeObject () const | |
expose as native object | |
std::string | get_name () const |
get unique name | |
std::string | serialize () const |
export as string | |
void | set_property (StyleClassTarget target, const std::string &property, const std::string &value) |
set property of target | |
void | set_property (const std::string &property, const std::string &value) |
set property of self | |
std::string | get_property (StyleClassTarget target, const std::string &property) const |
get property of target | |
std::string | get_property (const std::string &property) const |
get property of target | |
class that collects css information
mousetrap::StyleClass::StyleClass | ( | const std::string & | name | ) |
construct with name
unique | name |
mousetrap::StyleClass::StyleClass | ( | detail::StyleClassInternal * | internal | ) |
construct from internal
internal |
std::string mousetrap::StyleClass::get_name | ( | ) | const |
get unique name
Referenced by mousetrap::StyleManager::add_style_class(), and mousetrap::Widget::apply_style_class().
std::string mousetrap::StyleClass::get_property | ( | const std::string & | property | ) | const |
get property of target
target | |
property | css property name |
References get_property().
std::string mousetrap::StyleClass::get_property | ( | StyleClassTarget | target, |
const std::string & | property | ||
) | const |
get property of target
target | |
property | css property name |
Referenced by get_property().
std::string mousetrap::StyleClass::serialize | ( | ) | const |
export as string
Referenced by mousetrap::StyleManager::add_style_class().
void mousetrap::StyleClass::set_property | ( | const std::string & | property, |
const std::string & | value | ||
) |
set property of self
property | css property name |
value | css property value |
References set_property().
void mousetrap::StyleClass::set_property | ( | StyleClassTarget | target, |
const std::string & | property, | ||
const std::string & | value | ||
) |
set property of target
target | |
property | css property name |
value | css property value |
Referenced by set_property().