< Home

< Table of Contents

REFERENCE MANUAL

Touch Class Reference

#include <hps.h>

Public Member Functions

bool operator!= (Touch const &in_that) const
 
bool operator== (Touch const &in_that) const
 
 Touch ()
 
 Touch (TouchID in_id, WindowPoint const &in_location, size_t in_tap_count=1)
 

Public Attributes

TouchID ID
 TouchID for this Touch.
 
WindowPoint Location
 Location in window space for this Touch.
 
size_t TapCount
 Number of taps for this Touch.
 

Detailed Description

The Touch class represents the state of a single touch on a multi-touch device.

Constructor & Destructor Documentation

Touch::Touch ( )
inline

The default constructor creates a Touch object with a null TouchID, location at the window origin, and a down state of false.

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_idTouchID for this Touch.
in_locationLocation for this Touch.
in_tap_countNumber of taps for this Touch. Defaults to 1

Member Function Documentation

bool Touch::operator!= ( Touch const &  in_that) const
inline

Check if the source Touch is not equivalent to this Touch.

Parameters
in_thatThe source Touch to compare to this Touch.
Returns
true if the objects are not equivalent, false otherwise.
bool Touch::operator== ( Touch const &  in_that) const
inline

Check if the source Touch is equivalent to this Touch.

Parameters
in_thatThe source Touch to compare to this Touch.
Returns
true if the objects are equivalent, false otherwise.

References ID, Location, and TapCount.


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