Settings shared by all toggle variants — behaviour only.
More...
#include <Malena/Traits/Settings/ToggleSettings.h>
|
| float | animSpeed = 10.f |
| std::vector< std::pair< std::string, std::string > > | items |
Settings shared by all toggle variants — behaviour only.
Colors live in ToggleTheme. ToggleSettings holds animation speed and the item list used to pre-populate a ToggleGroup.
- See also
- ControlSettings, ToggleTheme, PillSettings
Definition at line 27 of file ToggleSettings.h.
◆ addItem()
| void ml::ToggleSettings::addItem |
( |
const std::string & | label, |
|
|
const std::string & | key ) |
|
inline |
◆ clearItems()
| void ml::ToggleSettings::clearItems |
( |
| ) |
|
|
inline |
◆ getAnimSpeed()
| float ml::ToggleSettings::getAnimSpeed |
( |
| ) |
const |
|
inlinenodiscard |
◆ getItems()
| const std::vector< std::pair< std::string, std::string > > & ml::ToggleSettings::getItems |
( |
| ) |
const |
|
inlinenodiscard |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ setAnimSpeed()
| void ml::ToggleSettings::setAnimSpeed |
( |
float | s | ) |
|
|
inline |
◆ setItems()
| void ml::ToggleSettings::setItems |
( |
std::vector< std::pair< std::string, std::string > > | i | ) |
|
|
inline |
◆ animSpeed
| float ml::ToggleSettings::animSpeed = 10.f |
◆ items
| std::vector<std::pair<std::string, std::string> > ml::ToggleSettings::items |
The documentation for this struct was generated from the following file: