20 namespace display_menu_base {
79 this->items_.push_back(item);
81 size_t items_size()
const {
return this->items_.size(); }
96 bool immediate_edit_{
false};
122 void set_format(
const std::string &fmt) { this->format_ = fmt; }
131 float get_number_value_()
const;
143 void set_on_text(
const std::string &t) { this->switch_on_text_ = t; }
144 void set_off_text(
const std::string &t) { this->switch_off_text_ = t; }
153 bool get_switch_state_()
const;
154 bool toggle_switch_();
176 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.