Adafruit TouchScreen
Public Member Functions | Public Attributes | List of all members
TSPoint Class Reference

#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
 

Detailed Description

Object that encapsulates the X,Y, and Z/pressure measurements for a touch event.

Constructor & Destructor Documentation

◆ TSPoint()

TSPoint::TSPoint ( int16_t  x0,
int16_t  y0,
int16_t  z0 
)

Construct a new TSPoint::TSPoint object.

Parameters
x0The point's X value
y0The point's Y value
z0The point's Z value

Member Function Documentation

◆ operator==()

bool TSPoint::operator== ( TSPoint  p1)

Check if the current point is equivalent to another point.

Parameters
p1The other point being checked for equivalence
Returns
true : the two points are equivalent false: the two points are not equivalent

◆ operator!=()

bool TSPoint::operator!= ( TSPoint  p1)

Check if the current point is not equivalent to another point.

Parameters
p1The other point being checked for equivalence
Returns
true :the two points are not equivalent false: the two points are equivalent

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