Public Member Functions | List of all members
pp::TouchPoint Class Reference

Wrapper class for PP_TouchPoint. More...

#include <touch_point.h>

Collaboration diagram for pp::TouchPoint:
Collaboration graph

Public Member Functions

 TouchPoint ()
 TouchPoint (const PP_TouchPoint &point)
uint32_t id () const
FloatPoint position () const
FloatPoint radii () const
float rotation_angle () const
float pressure () const

Detailed Description

Wrapper class for PP_TouchPoint.

Definition at line 15 of file touch_point.h.

Constructor & Destructor Documentation

pp::TouchPoint::TouchPoint ( )

Definition at line 17 of file touch_point.h.

pp::TouchPoint::TouchPoint ( const PP_TouchPoint &  point)

Definition at line 19 of file touch_point.h.

Member Function Documentation

uint32_t pp::TouchPoint::id ( ) const
The identifier for this TouchPoint. This corresponds to the order in which the points were pressed. For example, the first point to be pressed has an id of 0, the second has an id of 1, and so on. An id can be reused when a touch point is released. For example, if two fingers are down, with id 0 and 1, and finger 0 releases, the next finger to be pressed can be assigned to id 0.

Definition at line 27 of file touch_point.h.

FloatPoint pp::TouchPoint::position ( ) const
The x-y coordinates of this TouchPoint, in DOM coordinate space.

Definition at line 30 of file touch_point.h.

float pp::TouchPoint::pressure ( ) const
The pressure applied to this TouchPoint. This is typically a value between 0 and 1, with 0 indicating no pressure and 1 indicating some maximum pressure, but scaling differs depending on the hardware and the value is not guaranteed to stay within that range.

Definition at line 46 of file touch_point.h.

FloatPoint pp::TouchPoint::radii ( ) const
The elliptical radii, in screen pixels, in the x and y direction of this TouchPoint.

Definition at line 36 of file touch_point.h.

float pp::TouchPoint::rotation_angle ( ) const
The angle of rotation of the elliptical model of this TouchPoint from the y-axis.

Definition at line 40 of file touch_point.h.

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