ESPHome  2024.11.0
Public Member Functions | Protected Member Functions | Protected Attributes
esphome::lvgl::LVLight Class Reference

#include <lvgl_light.h>

Inheritance diagram for esphome::lvgl::LVLight:
esphome::light::LightOutput

Public Member Functions

light::LightTraits get_traits () override
 
void write_state (light::LightState *state) override
 
void set_obj (lv_obj_t *obj)
 
- Public Member Functions inherited from esphome::light::LightOutput
virtual std::unique_ptr< LightTransformercreate_default_transition ()
 Return the default transformer used for transitions. More...
 
virtual void setup_state (LightState *state)
 
virtual void update_state (LightState *state)
 Called on every update of the current values of the associated LightState, can optionally be used to do processing of this change. More...
 

Protected Member Functions

void set_value_ (lv_color_t value)
 

Protected Attributes

lv_obj_t * obj_ {}
 
optional< lv_color_t > initial_value_ {}
 

Detailed Description

Definition at line 10 of file lvgl_light.h.

Member Function Documentation

◆ get_traits()

light::LightTraits esphome::lvgl::LVLight::get_traits ( )
inlineoverridevirtual

Implements esphome::light::LightOutput.

Definition at line 12 of file lvgl_light.h.

◆ set_obj()

void esphome::lvgl::LVLight::set_obj ( lv_obj_t *  obj)
inline

Definition at line 28 of file lvgl_light.h.

◆ set_value_()

void esphome::lvgl::LVLight::set_value_ ( lv_color_t  value)
inlineprotected

Definition at line 38 of file lvgl_light.h.

◆ write_state()

void esphome::lvgl::LVLight::write_state ( light::LightState state)
inlineoverridevirtual

Implements esphome::light::LightOutput.

Definition at line 17 of file lvgl_light.h.

Field Documentation

◆ initial_value_

optional<lv_color_t> esphome::lvgl::LVLight::initial_value_ {}
protected

Definition at line 44 of file lvgl_light.h.

◆ obj_

lv_obj_t* esphome::lvgl::LVLight::obj_ {}
protected

Definition at line 43 of file lvgl_light.h.


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