ESPHome  2024.9.0
Public Member Functions | Protected Attributes
esphome::lvgl::LVTouchListener Class Reference

#include <lvgl_esphome.h>

Inheritance diagram for esphome::lvgl::LVTouchListener:
esphome::touchscreen::TouchListener esphome::Parented< LvglComponent >

Public Member Functions

 LVTouchListener (uint16_t long_press_time, uint16_t long_press_repeat_time)
 
void update (const touchscreen::TouchPoints_t &tpoints) override
 
void release () override
 
lv_indev_drv_t * get_drv ()
 
- Public Member Functions inherited from esphome::touchscreen::TouchListener
virtual void touch (TouchPoint tp)
 
- Public Member Functions inherited from esphome::Parented< LvglComponent >
 Parented ()
 
 Parented (LvglComponent *parent)
 
LvglComponent * get_parent () const
 Get the parent of this object. More...
 
void set_parent (LvglComponent *parent)
 Set the parent of this object. More...
 

Protected Attributes

lv_indev_drv_t drv_ {}
 
touchscreen::TouchPoint touch_point_ {}
 
bool touch_pressed_ {}
 
- Protected Attributes inherited from esphome::Parented< LvglComponent >
LvglComponent * parent_
 

Detailed Description

Definition at line 203 of file lvgl_esphome.h.

Constructor & Destructor Documentation

◆ LVTouchListener()

esphome::lvgl::LVTouchListener::LVTouchListener ( uint16_t  long_press_time,
uint16_t  long_press_repeat_time 
)

Definition at line 164 of file lvgl_esphome.cpp.

Member Function Documentation

◆ get_drv()

lv_indev_drv_t* esphome::lvgl::LVTouchListener::get_drv ( )
inline

Definition at line 208 of file lvgl_esphome.h.

◆ release()

void esphome::lvgl::LVTouchListener::release ( )
inlineoverridevirtual

Reimplemented from esphome::touchscreen::TouchListener.

Definition at line 207 of file lvgl_esphome.h.

◆ update()

void esphome::lvgl::LVTouchListener::update ( const touchscreen::TouchPoints_t tpoints)
overridevirtual

Reimplemented from esphome::touchscreen::TouchListener.

Definition at line 181 of file lvgl_esphome.cpp.

Field Documentation

◆ drv_

lv_indev_drv_t esphome::lvgl::LVTouchListener::drv_ {}
protected

Definition at line 211 of file lvgl_esphome.h.

◆ touch_point_

touchscreen::TouchPoint esphome::lvgl::LVTouchListener::touch_point_ {}
protected

Definition at line 212 of file lvgl_esphome.h.

◆ touch_pressed_

bool esphome::lvgl::LVTouchListener::touch_pressed_ {}
protected

Definition at line 213 of file lvgl_esphome.h.


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