gramods
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
gramods::gmTouch::TouchState::TouchPoint Struct Reference

A single (potentially smoothed) touch point. More...

#include <TouchState.hh>

Collaboration diagram for gramods::gmTouch::TouchState::TouchPoint:
Collaboration graph
[legend]

Public Member Functions

 TouchPoint (TouchPointId id, float x, float y)
 Constructs a positioned touch point with id.
 
 TouchPoint ()
 Constructs an empty touch point.
 

Public Attributes

float x
 x position in (sub) pixels from left edge.
 
float y
 y position in (sub) pixels from top edge.
 
float vx
 x velocity in pixels per second from left edge.
 
float vy
 y velocity in pixels per second from top edge.
 
float ex
 x position estimated by the recent motion.
 
float ey
 y position estimated by the recent motion.
 
float sx
 smoothed version of the x position.
 
float sy
 smoothed version of the y position.
 
TouchPointId id
 internal id of the touch point.
 
unsigned char state
 State of the touch point expressed as a bitwise combination.
 
unsigned int clicks
 The number of times this position was clicked in succession, for example two (2) for a double click.
 

Detailed Description

A single (potentially smoothed) touch point.

Constructor & Destructor Documentation

◆ TouchPoint() [1/2]

gramods::gmTouch::TouchState::TouchPoint::TouchPoint ( TouchPointId  id,
float  x,
float  y 
)

Constructs a positioned touch point with id.

◆ TouchPoint() [2/2]

gramods::gmTouch::TouchState::TouchPoint::TouchPoint ( )

Constructs an empty touch point.

Member Data Documentation

◆ clicks

unsigned int gramods::gmTouch::TouchState::TouchPoint::clicks

The number of times this position was clicked in succession, for example two (2) for a double click.

◆ ex

float gramods::gmTouch::TouchState::TouchPoint::ex

x position estimated by the recent motion.

◆ ey

float gramods::gmTouch::TouchState::TouchPoint::ey

y position estimated by the recent motion.

◆ id

TouchPointId gramods::gmTouch::TouchState::TouchPoint::id

internal id of the touch point.

◆ state

unsigned char gramods::gmTouch::TouchState::TouchPoint::state

State of the touch point expressed as a bitwise combination.

See also
State

◆ sx

float gramods::gmTouch::TouchState::TouchPoint::sx

smoothed version of the x position.

◆ sy

float gramods::gmTouch::TouchState::TouchPoint::sy

smoothed version of the y position.

◆ vx

float gramods::gmTouch::TouchState::TouchPoint::vx

x velocity in pixels per second from left edge.

◆ vy

float gramods::gmTouch::TouchState::TouchPoint::vy

y velocity in pixels per second from top edge.

◆ x

float gramods::gmTouch::TouchState::TouchPoint::x

x position in (sub) pixels from left edge.

◆ y

float gramods::gmTouch::TouchState::TouchPoint::y

y position in (sub) pixels from top edge.


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