The Touch class represents the state of a single touch on a multi-touch device.
More...
#include <hps.h>
The Touch class represents the state of a single touch on a multi-touch device.
◆ Touch() [1/2]
The default constructor creates a Touch object with a null TouchID, location at the window origin, and a down state of false.
◆ Touch() [2/2]
HPS::Touch::Touch |
( |
TouchID |
in_id, |
|
|
WindowPoint const & |
in_location, |
|
|
size_t |
in_tap_count = 1 |
|
) |
| |
|
inline |
This constructor creates a Touch object with a specified TouchID, location and down state.
- Parameters
-
in_id | TouchID for this Touch. |
in_location | Location for this Touch. |
in_tap_count | Number of taps for this Touch. Defaults to 1 |
◆ operator!=()
bool HPS::Touch::operator!= |
( |
Touch const & |
in_that | ) |
const |
|
inline |
Check if the source Touch is not equivalent to this Touch.
- Parameters
-
- Returns
- true if the objects are not equivalent, false otherwise.
◆ operator==()
bool HPS::Touch::operator== |
( |
Touch const & |
in_that | ) |
const |
|
inline |
Check if the source Touch is equivalent to this Touch.
- Parameters
-
- Returns
- true if the objects are equivalent, false otherwise.
◆ ID
◆ Location
Location in window space for this Touch.
◆ TapCount
size_t HPS::Touch::TapCount |
Number of taps for this Touch.
The documentation for this class was generated from the following file: