ESPHome 2026.10.0-dev
Loading...
Searching...
No Matches
esphome::lvgl::LvSelectable Class Referenceabstract

#include <lvgl_esphome.h>

Inheritance diagram for esphome::lvgl::LvSelectable:
esphome::lvgl::LvCompound esphome::lvgl::LvDropdownType esphome::lvgl::LvRollerType

Public Member Functions

virtual size_t get_selected_index ()=0
 
virtual void set_selected_index (size_t index, lv_anim_enable_t anim)=0
 
void set_selected_text (const std::string &text, lv_anim_enable_t anim)
 
std::string get_selected_text ()
 
const FixedVector< const char * > & get_options ()
 
void set_options (FixedVector< const char * > options)
 
- Public Member Functions inherited from esphome::lvgl::LvCompound
virtual ~LvCompound ()=default
 
virtual void set_obj (lv_obj_t *lv_obj)
 

Protected Member Functions

virtual void set_option_string (const char *options)=0
 

Protected Attributes

FixedVector< const char * > options_ {}
 

Additional Inherited Members

- Data Fields inherited from esphome::lvgl::LvCompound
lv_obj_t * obj {}
 

Detailed Description

Definition at line 540 of file lvgl_esphome.h.

Member Function Documentation

◆ get_options()

const FixedVector< const char * > & esphome::lvgl::LvSelectable::get_options ( )
inline

Definition at line 546 of file lvgl_esphome.h.

◆ get_selected_index()

virtual size_t esphome::lvgl::LvSelectable::get_selected_index ( )
pure virtual

◆ get_selected_text()

std::string esphome::lvgl::LvSelectable::get_selected_text ( )

Definition at line 593 of file lvgl_esphome.cpp.

◆ set_option_string()

virtual void esphome::lvgl::LvSelectable::set_option_string ( const char * options)
protectedpure virtual

◆ set_options()

void esphome::lvgl::LvSelectable::set_options ( FixedVector< const char * > options)

Definition at line 614 of file lvgl_esphome.cpp.

◆ set_selected_index()

virtual void esphome::lvgl::LvSelectable::set_selected_index ( size_t index,
lv_anim_enable_t anim )
pure virtual

◆ set_selected_text()

void esphome::lvgl::LvSelectable::set_selected_text ( const std::string & text,
lv_anim_enable_t anim )

Definition at line 606 of file lvgl_esphome.cpp.

Field Documentation

◆ options_

FixedVector<const char *> esphome::lvgl::LvSelectable::options_ {}
protected

Definition at line 551 of file lvgl_esphome.h.


The documentation for this class was generated from the following files: