23 auto *it = static_cast<LVGLSelect *>(e->user_data);
26 LV_EVENT_REFRESH,
this);
32 auto lamb = [](lv_event_t *e) {
33 auto *
self =
static_cast<LVGLSelect *
>(e->user_data);
36 lv_obj_add_event_cb(this->
widget_->
obj, lamb, LV_EVENT_VALUE_CHANGED,
this);
43 void control(
const std::string &value)
override {
54 lv_anim_enable_t
anim_{LV_ANIM_OFF};
value_type const & value() const
std::string get_selected_text()
void set_selected_text(const std::string &text, lv_anim_enable_t anim)
lv_event_code_t lv_update_event
void set_options(std::vector< std::string > options)
void set_widget(LvSelectable *widget, lv_anim_enable_t anim=LV_ANIM_OFF)
void publish_state(const std::string &state)
optional< std::string > initial_state_
Base-class for all selects.
Implementation of SPI Controller mode.
std::vector< std::string > get_options()
void control(const std::string &value) override