5#ifndef MALENA_TOGGLESETTINGS_H
6#define MALENA_TOGGLESETTINGS_H
30 std::vector<std::pair<std::string, std::string>>
items;
51 [[nodiscard]]
const std::vector<std::pair<std::string, std::string>>&
54 void setItems(std::vector<std::pair<std::string, std::string>> i)
55 {
items = std::move(i); }
57 void addItem(
const std::string& label,
const std::string& key)
58 {
items.emplace_back(label, key); }
Settings trait for interactive UI controls — layout only.
Base settings trait for all visual components — geometry only.
Settings shared by all toggle variants — behaviour only.
ToggleSettings & operator=(const ControlSettings &c)
void setAnimSpeed(float s)
void setItems(std::vector< std::pair< std::string, std::string > > i)
ToggleSettings & operator=(const GraphicSettings &g)
void addItem(const std::string &label, const std::string &key)
const std::vector< std::pair< std::string, std::string > > & getItems() const
float getAnimSpeed() const
std::vector< std::pair< std::string, std::string > > items