Layout and behaviour settings for ButtonToggle.
More...
#include <Malena/Traits/Settings/ButtonSettings.h>
Layout and behaviour settings for ButtonToggle.
Colors live in ButtonTheme.
- See also
- ToggleSettings, ButtonTheme, ButtonStyle, ButtonToggle
Definition at line 27 of file ButtonSettings.h.
◆ IconAlign
| Enumerator |
|---|
| ICON_ONLY | |
| ICON_LEFT | |
| ICON_RIGHT | |
| ICON_ABOVE | |
Definition at line 43 of file ButtonSettings.h.
◆ addItem()
| void ml::ToggleSettings::addItem |
( |
const std::string & | label, |
|
|
const std::string & | key ) |
|
inlineinherited |
◆ clearItems()
| void ml::ToggleSettings::clearItems |
( |
| ) |
|
|
inlineinherited |
◆ getAnimSpeed()
| float ml::ToggleSettings::getAnimSpeed |
( |
| ) |
const |
|
inlinenodiscardinherited |
◆ getIconAlign()
| IconAlign ml::ButtonSettings::getIconAlign |
( |
| ) |
const |
|
inlinenodiscard |
◆ getIconOff()
| const sf::Texture * ml::ButtonSettings::getIconOff |
( |
| ) |
const |
|
inlinenodiscard |
◆ getIconOffRect()
| sf::IntRect ml::ButtonSettings::getIconOffRect |
( |
| ) |
const |
|
inlinenodiscard |
◆ getIconOn()
| const sf::Texture * ml::ButtonSettings::getIconOn |
( |
| ) |
const |
|
inlinenodiscard |
◆ getIconOnRect()
| sf::IntRect ml::ButtonSettings::getIconOnRect |
( |
| ) |
const |
|
inlinenodiscard |
◆ getIconPadding()
| float ml::ButtonSettings::getIconPadding |
( |
| ) |
const |
|
inlinenodiscard |
◆ getIconSize()
◆ getItems()
| const std::vector< std::pair< std::string, std::string > > & ml::ToggleSettings::getItems |
( |
| ) |
const |
|
inlinenodiscardinherited |
◆ getOffLabel()
| std::string ml::ButtonSettings::getOffLabel |
( |
| ) |
const |
|
inlinenodiscard |
◆ getOnLabel()
| std::string ml::ButtonSettings::getOnLabel |
( |
| ) |
const |
|
inlinenodiscard |
◆ getSize()
◆ operator=() [1/3]
◆ operator=() [2/3]
◆ operator=() [3/3]
◆ setAnimSpeed()
| void ml::ToggleSettings::setAnimSpeed |
( |
float | s | ) |
|
|
inlineinherited |
◆ setIconAlign()
| void ml::ButtonSettings::setIconAlign |
( |
IconAlign | a | ) |
|
|
inline |
◆ setIconOff()
| void ml::ButtonSettings::setIconOff |
( |
const sf::Texture * | t | ) |
|
|
inline |
◆ setIconOffRect()
| void ml::ButtonSettings::setIconOffRect |
( |
const sf::IntRect & | r | ) |
|
|
inline |
◆ setIconOn()
| void ml::ButtonSettings::setIconOn |
( |
const sf::Texture * | t | ) |
|
|
inline |
◆ setIconOnRect()
| void ml::ButtonSettings::setIconOnRect |
( |
const sf::IntRect & | r | ) |
|
|
inline |
◆ setIconPadding()
| void ml::ButtonSettings::setIconPadding |
( |
float | p | ) |
|
|
inline |
◆ setIcons()
◆ setIconSize()
| void ml::ButtonSettings::setIconSize |
( |
const sf::Vector2f & | s | ) |
|
|
inline |
◆ setItems()
| void ml::ToggleSettings::setItems |
( |
std::vector< std::pair< std::string, std::string > > | i | ) |
|
|
inlineinherited |
◆ setLabels()
| void ml::ButtonSettings::setLabels |
( |
const std::string & | on, |
|
|
const std::string & | off ) |
|
inline |
◆ setOffLabel()
| void ml::ButtonSettings::setOffLabel |
( |
const std::string & | s | ) |
|
|
inline |
◆ setOnLabel()
| void ml::ButtonSettings::setOnLabel |
( |
const std::string & | s | ) |
|
|
inline |
◆ setSize()
◆ animSpeed
| float ml::ToggleSettings::animSpeed = 10.f |
|
inherited |
◆ iconAlign
◆ iconOff
| const sf::Texture* ml::ButtonSettings::iconOff = nullptr |
◆ iconOffRect
◆ iconOn
| const sf::Texture* ml::ButtonSettings::iconOn = nullptr |
◆ iconOnRect
◆ iconPadding
| float ml::ButtonSettings::iconPadding = 6.f |
◆ iconSize
◆ items
| std::vector<std::pair<std::string, std::string> > ml::ToggleSettings::items |
|
inherited |
◆ offLabel
| std::string ml::ButtonSettings::offLabel = "OFF" |
◆ onLabel
| std::string ml::ButtonSettings::onLabel = "ON" |
◆ size
The documentation for this struct was generated from the following file: