ESPHome  2024.12.2
Public Member Functions | Protected Member Functions | Protected Attributes
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 ()
 
std::vector< std::string > get_options ()
 
void set_options (std::vector< std::string > options)
 
- Public Member Functions inherited from esphome::lvgl::LvCompound
virtual void set_obj (lv_obj_t *lv_obj)
 

Protected Member Functions

virtual void set_option_string (const char *options)=0
 

Protected Attributes

std::vector< std::string > options_ {}
 

Additional Inherited Members

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

Detailed Description

Definition at line 319 of file lvgl_esphome.h.

Member Function Documentation

◆ get_options()

std::vector<std::string> esphome::lvgl::LvSelectable::get_options ( )
inline

Definition at line 325 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 272 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 ( std::vector< std::string >  options)

Definition at line 293 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 285 of file lvgl_esphome.cpp.

Field Documentation

◆ options_

std::vector<std::string> esphome::lvgl::LvSelectable::options_ {}
protected

Definition at line 330 of file lvgl_esphome.h.


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