|
idfxx 1.0.0
Modern C++23 components for ESP-IDF
|
Abstract base class for touch controllers. More...
Classes | |
| struct | config |
| Configuration structure for touch controllers. More... | |
Public Types | |
| typedef std::move_only_function< void(uint16_t *x, uint16_t *y, uint16_t *strength, uint8_t *point_num, uint8_t max_point_num)> | process_coordinates_callback |
| Callback type for processing touch coordinates. | |
Public Member Functions | |
| virtual | ~touch ()=default |
| touch (const touch &)=delete | |
| touch & | operator= (const touch &)=delete |
| esp_lcd_touch_handle_t | idf_handle () const |
| Returns the underlying ESP-IDF handle. | |
Protected Member Functions | |
| touch ()=default | |
| touch (touch &&) noexcept=default | |
| touch & | operator= (touch &&) noexcept=default |
| virtual esp_lcd_touch_handle_t | do_idf_handle () const =0 |
| Hook for idf_handle. | |
Abstract base class for touch controllers.
The public interface is non-virtual; concrete drivers (e.g. idfxx::lcd::stmpe610) customize behaviour by overriding the protected do_* hooks, mirroring the standard library's non-virtual-interface pattern (cf. std::pmr::memory_resource).
| typedef std::move_only_function< void(uint16_t* x, uint16_t* y, uint16_t* strength, uint8_t* point_num, uint8_t max_point_num)> idfxx::lcd::touch::process_coordinates_callback |
|
virtualdefault |
|
delete |
|
protecteddefault |
|
protecteddefaultnoexcept |
|
protectedpure virtual |
Hook for idf_handle.
Referenced by idf_handle().
|
inline |
Returns the underlying ESP-IDF handle.
Definition at line 80 of file touch.hpp.
References do_idf_handle().