Adafruit TouchScreen
|
#include <TouchScreen.h>
Public Member Functions | |
TSPoint (int16_t x, int16_t y, int16_t z) | |
Construct a new TSPoint::TSPoint object. More... | |
bool | operator== (TSPoint) |
Check if the current point is equivalent to another point. More... | |
bool | operator!= (TSPoint) |
Check if the current point is not equivalent to another point. More... | |
Public Attributes | |
int16_t | x |
state variable for the x value | |
int16_t | y |
state variable for the y value | |
int16_t | z |
state variable for the z value | |
Object that encapsulates the X,Y, and Z/pressure measurements for a touch event.
TSPoint::TSPoint | ( | int16_t | x0, |
int16_t | y0, | ||
int16_t | z0 | ||
) |
Construct a new TSPoint::TSPoint object.
x0 | The point's X value |
y0 | The point's Y value |
z0 | The point's Z value |
bool TSPoint::operator== | ( | TSPoint | p1 | ) |
Check if the current point is equivalent to another point.
p1 | The other point being checked for equivalence |
true
: the two points are equivalent false
: the two points are not equivalent bool TSPoint::operator!= | ( | TSPoint | p1 | ) |
Check if the current point is not equivalent to another point.
p1 | The other point being checked for equivalence |
true
:the two points are not equivalent false
: the two points are equivalent