Layout and behaviour settings for PillToggle.
More...
#include <Malena/Traits/Settings/PillSettings.h>
Layout and behaviour settings for PillToggle.
Colors live in PillTheme. PillSettings holds geometry and content — track size, thumb margin, labels, and animation speed (inherited from ToggleSettings).
- See also
- ToggleSettings, PillTheme, PillStyle, PillToggle
Definition at line 27 of file PillSettings.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 |
◆ getItems()
| const std::vector< std::pair< std::string, std::string > > & ml::ToggleSettings::getItems |
( |
| ) |
const |
|
inlinenodiscardinherited |
◆ getLabelOffset()
| float ml::PillSettings::getLabelOffset |
( |
| ) |
const |
|
inlinenodiscard |
◆ getLeftLabel()
| std::string ml::PillSettings::getLeftLabel |
( |
| ) |
const |
|
inlinenodiscard |
◆ getPillOffLabel()
| std::string ml::PillSettings::getPillOffLabel |
( |
| ) |
const |
|
inlinenodiscard |
◆ getPillOnLabel()
| std::string ml::PillSettings::getPillOnLabel |
( |
| ) |
const |
|
inlinenodiscard |
◆ getRightLabel()
| std::string ml::PillSettings::getRightLabel |
( |
| ) |
const |
|
inlinenodiscard |
◆ getThumbMargin()
| float ml::PillSettings::getThumbMargin |
( |
| ) |
const |
|
inlinenodiscard |
◆ getTrackSize()
◆ operator=() [1/3]
◆ operator=() [2/3]
◆ operator=() [3/3]
◆ setAnimSpeed()
| void ml::ToggleSettings::setAnimSpeed |
( |
float | s | ) |
|
|
inlineinherited |
◆ setItems()
| void ml::ToggleSettings::setItems |
( |
std::vector< std::pair< std::string, std::string > > | i | ) |
|
|
inlineinherited |
◆ setLabelOffset()
| void ml::PillSettings::setLabelOffset |
( |
float | o | ) |
|
|
inline |
◆ setLeftLabel()
| void ml::PillSettings::setLeftLabel |
( |
const std::string & | s | ) |
|
|
inline |
◆ setPillLabels()
| void ml::PillSettings::setPillLabels |
( |
const std::string & | off, |
|
|
const std::string & | on ) |
|
inline |
◆ setPillOffLabel()
| void ml::PillSettings::setPillOffLabel |
( |
const std::string & | s | ) |
|
|
inline |
◆ setPillOnLabel()
| void ml::PillSettings::setPillOnLabel |
( |
const std::string & | s | ) |
|
|
inline |
◆ setRightLabel()
| void ml::PillSettings::setRightLabel |
( |
const std::string & | s | ) |
|
|
inline |
◆ setThumbMargin()
| void ml::PillSettings::setThumbMargin |
( |
float | m | ) |
|
|
inline |
◆ setTrackSize()
| void ml::PillSettings::setTrackSize |
( |
const sf::Vector2f & | s | ) |
|
|
inline |
◆ animSpeed
| float ml::ToggleSettings::animSpeed = 10.f |
|
inherited |
◆ items
| std::vector<std::pair<std::string, std::string> > ml::ToggleSettings::items |
|
inherited |
◆ labelOffset
| float ml::PillSettings::labelOffset = 8.f |
◆ leftLabel
| std::string ml::PillSettings::leftLabel |
◆ pillOffLabel
| std::string ml::PillSettings::pillOffLabel |
◆ pillOnLabel
| std::string ml::PillSettings::pillOnLabel |
◆ rightLabel
| std::string ml::PillSettings::rightLabel |
◆ thumbMargin
| float ml::PillSettings::thumbMargin = 2.f |
◆ trackSize
The documentation for this struct was generated from the following file: