Graphics::Touch Class Referenceabstract
#include <Touch.h>
Inheritance diagram for Graphics::Touch:
Collaboration diagram for Graphics::Touch:
Classes | |
| struct | Calibration |
| struct | State |
Public Types | |
| using | Callback = Delegate< void()> |
| Callback function. More... | |
Public Member Functions | |
| Touch (Device *device=nullptr) | |
| virtual bool | setOrientation (Orientation orientation) |
| Set display orientation. More... | |
| virtual Size | getNativeSize () const =0 |
| Get physical size of display. More... | |
| virtual State | getState () const =0 |
| Get current state. More... | |
| virtual void | setCallback (Callback callback) |
| Register callback to be invoked when state changes. More... | |
| Size | getSize () const |
| Get native dimensions for current orientation. More... | |
| Orientation | getOrientation () |
| Get current display orientation. More... | |
| void | setCalibration (const Calibration &cal) |
| Point | translate (Point rawPos) |
| Translate position into screen co-ordinates. More... | |
Protected Attributes | |
| Device * | device |
| Orientation | orientation {} |
| Calibration | calibration |
| Callback | callback |
Member Typedef Documentation
◆ Callback
| using Graphics::Touch::Callback = Delegate<void()> |
Callback function.
Constructor & Destructor Documentation
◆ Touch()
|
inline |
Member Function Documentation
◆ getNativeSize()
|
pure virtual |
Get physical size of display.
- Return values
-
Size Dimensions for NORMAL orientation
Implemented in Graphics::XPT2046, and Graphics::VirtualTouch.
◆ getOrientation()
|
inline |
Get current display orientation.
◆ getSize()
|
inline |
Get native dimensions for current orientation.
◆ getState()
|
pure virtual |
Get current state.
Implemented in Graphics::XPT2046, and Graphics::VirtualTouch.
◆ setCalibration()
|
inline |
◆ setCallback()
|
inlinevirtual |
Register callback to be invoked when state changes.
◆ setOrientation()
|
virtual |
Set display orientation.
◆ translate()
Translate position into screen co-ordinates.
Member Data Documentation
◆ calibration
|
protected |
◆ callback
|
protected |
◆ device
|
protected |
◆ orientation
|
protected |
The documentation for this class was generated from the following file:
1.8.17