|
bWidgets
Core widget toolkit designed for Blender
|
Manage a list of properties (bwStyleProperty instances). More...
#include <bwStyleProperties.h>
Public Types | |
| using | PropertyList = std::vector< std::unique_ptr< bwStyleProperty > > |
| using | iterator = PropertyList::iterator |
| using | const_iterator = PropertyList::const_iterator |
Public Member Functions | |
| auto | lookup (const std::string_view &name) const -> const bwStyleProperty * |
| auto | begin () -> iterator |
| auto | end () -> iterator |
| auto | begin () const -> const_iterator |
| auto | end () const -> const_iterator |
Property registration | |
| auto | addBool (const std::string_view &name, bool &reference) -> bwStyleProperty & |
| auto | addBool (const std::string_view &name) -> bwStyleProperty & |
| auto | addInteger (const std::string_view &name, int &reference) -> bwStyleProperty & |
| auto | addInteger (const std::string_view &name) -> bwStyleProperty & |
| auto | addFloat (const std::string_view &name, float &reference) -> bwStyleProperty & |
| auto | addFloat (const std::string_view &name) -> bwStyleProperty & |
| auto | addColor (const std::string_view &name, class bwColor &reference) -> bwStyleProperty & |
| auto | addColor (const std::string_view &name) -> bwStyleProperty & |
| auto | addProperty (const std::string_view &name, const bwStyleProperty::Type prop_type) -> bwStyleProperty & |
Manage a list of properties (bwStyleProperty instances).
This class can be used to do the following:
| using bWidgets::bwStyleProperties::const_iterator = PropertyList::const_iterator |
| using bWidgets::bwStyleProperties::iterator = PropertyList::iterator |
| using bWidgets::bwStyleProperties::PropertyList = std::vector<std::unique_ptr<bwStyleProperty> > |
| auto bWidgets::bwStyleProperties::addBool | ( | const std::string_view & | name | ) | -> bwStyleProperty& |
| auto bWidgets::bwStyleProperties::addBool | ( | const std::string_view & | name, |
| bool & | reference | ||
| ) | -> bwStyleProperty& |
| auto bWidgets::bwStyleProperties::addColor | ( | const std::string_view & | name | ) | -> bwStyleProperty& |
| auto bWidgets::bwStyleProperties::addColor | ( | const std::string_view & | name, |
| class bwColor & | reference | ||
| ) | -> bwStyleProperty& |
| auto bWidgets::bwStyleProperties::addFloat | ( | const std::string_view & | name | ) | -> bwStyleProperty& |
| auto bWidgets::bwStyleProperties::addFloat | ( | const std::string_view & | name, |
| float & | reference | ||
| ) | -> bwStyleProperty& |
| auto bWidgets::bwStyleProperties::addInteger | ( | const std::string_view & | name | ) | -> bwStyleProperty& |
| auto bWidgets::bwStyleProperties::addInteger | ( | const std::string_view & | name, |
| int & | reference | ||
| ) | -> bwStyleProperty& |
| auto bWidgets::bwStyleProperties::addProperty | ( | const std::string_view & | name, |
| const bwStyleProperty::Type | prop_type | ||
| ) | -> bwStyleProperty& |
| auto bWidgets::bwStyleProperties::begin | ( | ) | -> iterator |
| auto bWidgets::bwStyleProperties::begin | ( | ) | const -> const_iterator |
| auto bWidgets::bwStyleProperties::end | ( | ) | -> iterator |
| auto bWidgets::bwStyleProperties::end | ( | ) | const -> const_iterator |
| auto bWidgets::bwStyleProperties::lookup | ( | const std::string_view & | name | ) | const -> const bwStyleProperty* |