ESPHome  2022.6.3
Public Member Functions | Protected Member Functions | Protected Attributes
esphome::touchscreen::Touchscreen Class Reference

#include <touchscreen.h>

Inheritance diagram for esphome::touchscreen::Touchscreen:
esphome::ektf2232::EKTF2232Touchscreen esphome::lilygo_t5_47::LilygoT547Touchscreen

Public Member Functions

void set_display (display::DisplayBuffer *display)
 
display::DisplayBufferget_display () const
 
Trigger< TouchPoint > * get_touch_trigger ()
 
void register_listener (TouchListener *listener)
 

Protected Member Functions

void send_touch_ (TouchPoint tp)
 Call this function to send touch points to the on_touch listener and the binary_sensors. More...
 

Protected Attributes

uint16_t display_width_
 
uint16_t display_height_
 
display::DisplayBufferdisplay_
 
TouchRotation rotation_
 
Trigger< TouchPointtouch_trigger_
 
std::vector< TouchListener * > touch_listeners_
 

Detailed Description

Definition at line 32 of file touchscreen.h.

Member Function Documentation

◆ get_display()

display::DisplayBuffer* esphome::touchscreen::Touchscreen::get_display ( ) const
inline

Definition at line 40 of file touchscreen.h.

◆ get_touch_trigger()

Trigger<TouchPoint>* esphome::touchscreen::Touchscreen::get_touch_trigger ( )
inline

Definition at line 42 of file touchscreen.h.

◆ register_listener()

void esphome::touchscreen::Touchscreen::register_listener ( TouchListener listener)
inline

Definition at line 44 of file touchscreen.h.

◆ send_touch_()

void esphome::touchscreen::Touchscreen::send_touch_ ( TouchPoint  tp)
protected

Call this function to send touch points to the on_touch listener and the binary_sensors.

Definition at line 10 of file touchscreen.cpp.

◆ set_display()

void esphome::touchscreen::Touchscreen::set_display ( display::DisplayBuffer display)
inline

Definition at line 34 of file touchscreen.h.

Field Documentation

◆ display_

display::DisplayBuffer* esphome::touchscreen::Touchscreen::display_
protected

Definition at line 52 of file touchscreen.h.

◆ display_height_

uint16_t esphome::touchscreen::Touchscreen::display_height_
protected

Definition at line 51 of file touchscreen.h.

◆ display_width_

uint16_t esphome::touchscreen::Touchscreen::display_width_
protected

Definition at line 50 of file touchscreen.h.

◆ rotation_

TouchRotation esphome::touchscreen::Touchscreen::rotation_
protected

Definition at line 53 of file touchscreen.h.

◆ touch_listeners_

std::vector<TouchListener *> esphome::touchscreen::Touchscreen::touch_listeners_
protected

Definition at line 55 of file touchscreen.h.

◆ touch_trigger_

Trigger<TouchPoint> esphome::touchscreen::Touchscreen::touch_trigger_
protected

Definition at line 54 of file touchscreen.h.


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