ESPHome 2026.5.0-dev
Loading...
Searching...
No Matches
esphome::lvgl Namespace Reference

Data Structures

class  IdleTrigger
 
class  IndicatorLine
 
class  LvButtonMatrixType
 
class  LvCompound
 
class  LvDropdownType
 
class  LVEncoderListener
 
class  LvglAction
 
class  LvglComponent
 Component for rendering LVGL. More...
 
class  LvglCondition
 
class  LVGLNumber
 
class  LVGLSelect
 
class  LVGLSwitch
 
class  LVGLText
 
class  LvKeyboardType
 
class  LvLambdaComponent
 
class  LVLight
 
class  LvLineType
 
class  LvPageType
 
class  LvRollerType
 
class  LvSelectable
 
class  LVTouchListener
 
class  ObjUpdateAction
 

Typedefs

using lv_color_data = uint16_t
 
using event_callback_t = void(lv_event_t *)
 

Enumerations

enum  RotationType : uint8_t { ROTATION_UNUSED , ROTATION_SOFTWARE , ROTATION_HARDWARE }
 

Functions

std::string lv_event_code_name_for (lv_event_t *event)
 
int16_t lv_get_needle_angle_for_value (lv_obj_t *obj, int value)
 
void lv_animimg_stop (lv_obj_t *obj)
 
void lv_scale_draw_event_cb (lv_event_t *e, int16_t range_start, int16_t range_end, lv_color_t color_start, lv_color_t color_end, int width, bool local)
 Function to apply colors to ticks based on position.
 
lv_obj_t * lv_container_create (lv_obj_t *parent)
 
void lv_obj_set_style_text_font (lv_obj_t *obj, const font::Font *font, lv_style_selector_t part)
 
void lv_style_set_text_font (lv_style_t *style, const font::Font *font)
 
void lv_image_set_src (lv_obj_t *obj, image::Image *image)
 
void lv_obj_set_style_bitmap_mask_src (lv_obj_t *obj, image::Image *image, lv_style_selector_t selector)
 
void lv_obj_set_style_bg_image_src (lv_obj_t *obj, image::Image *image, lv_style_selector_t selector)
 
void lv_animimg_set_src (lv_obj_t *img, std::vector< image::Image * > images)
 

Variables

lv_event_code_t lv_api_event
 
lv_event_code_t lv_update_event
 
const lv_obj_class_t LV_CONTAINER_CLASS
 

Typedef Documentation

◆ event_callback_t

using esphome::lvgl::event_callback_t = void(lv_event_t *)

Definition at line 138 of file lvgl_esphome.h.

◆ lv_color_data

Definition at line 47 of file lvgl_esphome.h.

Enumeration Type Documentation

◆ RotationType

Enumerator
ROTATION_UNUSED 
ROTATION_SOFTWARE 
ROTATION_HARDWARE 

Definition at line 164 of file lvgl_esphome.h.

Function Documentation

◆ lv_animimg_set_src()

void esphome::lvgl::lv_animimg_set_src ( lv_obj_t * img,
std::vector< image::Image * > images )
inline

Definition at line 93 of file lvgl_esphome.h.

◆ lv_animimg_stop()

void esphome::lvgl::lv_animimg_stop ( lv_obj_t * obj)

Definition at line 821 of file lvgl_esphome.cpp.

◆ lv_container_create()

lv_obj_t * esphome::lvgl::lv_container_create ( lv_obj_t * parent)

Definition at line 877 of file lvgl_esphome.cpp.

◆ lv_event_code_name_for()

std::string esphome::lvgl::lv_event_code_name_for ( lv_event_t * event)

Definition at line 75 of file lvgl_esphome.cpp.

◆ lv_get_needle_angle_for_value()

int16_t esphome::lvgl::lv_get_needle_angle_for_value ( lv_obj_t * obj,
int value )

Definition at line 457 of file lvgl_esphome.cpp.

◆ lv_image_set_src()

void esphome::lvgl::lv_image_set_src ( lv_obj_t * obj,
image::Image * image )
inline

Definition at line 81 of file lvgl_esphome.h.

◆ lv_obj_set_style_bg_image_src()

void esphome::lvgl::lv_obj_set_style_bg_image_src ( lv_obj_t * obj,
image::Image * image,
lv_style_selector_t selector )
inline

Definition at line 88 of file lvgl_esphome.h.

◆ lv_obj_set_style_bitmap_mask_src()

void esphome::lvgl::lv_obj_set_style_bitmap_mask_src ( lv_obj_t * obj,
image::Image * image,
lv_style_selector_t selector )
inline

Definition at line 84 of file lvgl_esphome.h.

◆ lv_obj_set_style_text_font()

void esphome::lvgl::lv_obj_set_style_text_font ( lv_obj_t * obj,
const font::Font * font,
lv_style_selector_t part )
inline

Definition at line 71 of file lvgl_esphome.h.

◆ lv_scale_draw_event_cb()

void esphome::lvgl::lv_scale_draw_event_cb ( lv_event_t * e,
int16_t range_start,
int16_t range_end,
lv_color_t color_start,
lv_color_t color_end,
int width,
bool local )

Function to apply colors to ticks based on position.

Parameters
eThe event data
color_startThe color to apply to the first tick
color_endThe color to apply to the last tick
width

Definition at line 840 of file lvgl_esphome.cpp.

◆ lv_style_set_text_font()

void esphome::lvgl::lv_style_set_text_font ( lv_style_t * style,
const font::Font * font )
inline

Definition at line 74 of file lvgl_esphome.h.

Variable Documentation

◆ lv_api_event

lv_event_code_t esphome::lvgl::lv_api_event

Definition at line 150 of file lvgl_esphome.cpp.

◆ LV_CONTAINER_CLASS

const lv_obj_class_t esphome::lvgl::LV_CONTAINER_CLASS
Initial value:
= {
.base_class = &lv_obj_class,
.constructor_cb = lv_container_constructor,
.name = "lv_container",
}

Definition at line 871 of file lvgl_esphome.cpp.

◆ lv_update_event

lv_event_code_t esphome::lvgl::lv_update_event

Definition at line 151 of file lvgl_esphome.cpp.