19 namespace display_menu_base {
75 this->items_.push_back(item);
77 size_t items_size()
const {
return this->items_.size(); }
92 bool immediate_edit_{
false};
118 void set_format(
const std::string &fmt) { this->format_ = fmt; }
127 float get_number_value_()
const;
139 void set_on_text(
const std::string &t) { this->switch_on_text_ = t; }
140 void set_off_text(
const std::string &t) { this->switch_off_text_ = t; }
149 bool get_switch_state_()
const;
150 bool toggle_switch_();
172 bool has_value()
const override {
return this->value_getter_.has_value(); }
Base class for all switches.
Base-class for all numbers.
Base-class for all selects.
Implementation of SPI Controller mode.