Rasterfarm-SDK
Loading...
Searching...
No Matches
TouchEvent Class Reference

#include <event.h>

Inheritance diagram for TouchEvent:
CursorEvent Event DynamicType

Public Types

enum  InputType : Event::InputType {
  TOUCH_MOTION = MouseEvent::MOUSE_MOTION ,
  TOUCH_DOWN = MouseEvent::MOUSE_PRESS ,
  TOUCH_UP = MouseEvent::MOUSE_RELEASE
}
 
- Public Types inherited from CursorEvent
enum  InputType : Event::InputType {
  MOTION ,
  SELECT ,
  UNSELECT ,
  WHEEL
}
 
- Public Types inherited from Event
enum  { UNKNOWN = 0 }
 
typedef uint InputType
 

Public Member Functions

 TouchEvent ()
 
 TouchEvent (const Vertex2f &position, const Vertex2f &deltaPosition, float pressure, int id, InputType subType)
 
float getPressure () const
 
float getId () const
 
- Public Member Functions inherited from CursorEvent
 CursorEvent (const Vertex2f &position, Event::InputType subType=UNKNOWN)
 
Vertex2f getPosition () const
 
- Public Member Functions inherited from Event
 Event (InputType subType=UNKNOWN)
 
virtual ~Event ()
 
const InputType getSubType () const
 
- Public Member Functions inherited from DynamicType
 DynamicType ()
 
template<class C >
void addType ()
 
TypeID getDerivedTypeId () const
 
template<class C >
const bool isType () const
 
template<class C >
const C * cast () const
 
template<class C >
C * cast ()
 
template<class FROM , class TO >
TO * cast ()
 
template<class FROM , class TO >
const TO * cast () const
 

Friends

class Application
 

Additional Inherited Members

- Public Attributes inherited from CursorEvent
Vertex2f position
 
- Public Attributes inherited from Event
InputType subType
 

Detailed Description

User-input event from touch-screen.

Member Enumeration Documentation

◆ InputType

Enumerator
TOUCH_MOTION 
TOUCH_DOWN 
TOUCH_UP 

Constructor & Destructor Documentation

◆ TouchEvent() [1/2]

TouchEvent::TouchEvent ( )

◆ TouchEvent() [2/2]

TouchEvent::TouchEvent ( const Vertex2f & position,
const Vertex2f & deltaPosition,
float pressure,
int id,
InputType subType )

Member Function Documentation

◆ getId()

float TouchEvent::getId ( ) const
inline
Returns
The identifier for this TouchEvent.

◆ getPressure()

float TouchEvent::getPressure ( ) const
inline
Returns
The signed coordinate of the mouse y-position.

Friends And Related Symbol Documentation

◆ Application

friend class Application
friend

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