All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Radiant::TouchEvent Class Reference

Window system touch event. More...

#include <Radiant/TouchEvent.hpp>

Public Types

typedef QList
< QTouchEvent::TouchPoint > 
TouchPointList
 List of touchpoints.
 
enum  Type { TOUCH_BEGIN, TOUCH_UPDATE, TOUCH_END }
 Possible touch event types. More...
 

Public Member Functions

 TouchEvent ()
 Constructor. Type of the event is set as TOUCH_BEGIN.
 
 TouchEvent (const TouchEvent &te)
 Copy constructor. More...
 
 TouchEvent (const QTouchEvent &qte)
 Construct TouchEvent from QTouchEvent. More...
 
const TouchPointList & touchPoints () const
 Single event can contain multiple touch points attached to it. More...
 
TouchPointList & touchPoints ()
 Single event can contain multiple touch points attached to it. More...
 
Type type () const
 Returns the event type. More...
 
virtual ~TouchEvent ()
 Destructor.
 

Detailed Description

Window system touch event.

These are not Cornerstone touch events, but can be converted to such.

MultiWidgets::Application listens to these events and uses them.

Member Enumeration Documentation

Possible touch event types.

Enumerator
TOUCH_BEGIN 

First contact of the touch.

TOUCH_UPDATE 

Update to already detected touch.

TOUCH_END 

End of touch.

Constructor & Destructor Documentation

Radiant::TouchEvent::TouchEvent ( const TouchEvent &  te)

Copy constructor.

Parameters
teTouchEvent to copy
Radiant::TouchEvent::TouchEvent ( const QTouchEvent &  qte)

Construct TouchEvent from QTouchEvent.

Parameters
qteTouchEvent to duplicate

Member Function Documentation

const TouchPointList& Radiant::TouchEvent::touchPoints ( ) const

Single event can contain multiple touch points attached to it.

Returns
The list of touch points contained in the touch event.
TouchPointList& Radiant::TouchEvent::touchPoints ( )

Single event can contain multiple touch points attached to it.

Returns
The list of touch points contained in the touch event.
Type Radiant::TouchEvent::type ( ) const

Returns the event type.

Returns
Type of the event.