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

This class describes a (Wacom) tablet event. More...

#include <Radiant/TabletEvent.hpp>

Public Member Functions

const Nimble::Vector2flocation () const
 Get location of the event. More...
 
void setLocation (Nimble::Vector2f location)
 Sets event's location. More...
 
 TabletEvent ()
 Default constructor, members are initilized by default values.
 
 TabletEvent (QTabletEvent &event)
 Initializes event based on corresponding http://qt-project.org/doc/qt-4.8/qtabletevent.html "QTabletEvent". More...
 
QEvent::Type type () const
 Type of the event (TabletMove, TabletPress, TabletRelease) More...
 

Detailed Description

This class describes a (Wacom) tablet event.

Tablet events behave similar to mouse events. They are created when the application has input focus and a stylus is pressed, released or moved on a tablet.

Constructor & Destructor Documentation

Radiant::TabletEvent::TabletEvent ( QTabletEvent &  event)

Initializes event based on corresponding http://qt-project.org/doc/qt-4.8/qtabletevent.html "QTabletEvent".

Member Function Documentation

const Nimble::Vector2f& Radiant::TabletEvent::location ( ) const

Get location of the event.

Returns
Location os event
void Radiant::TabletEvent::setLocation ( Nimble::Vector2f  location)

Sets event's location.

Parameters
locationNew location to set
QEvent::Type Radiant::TabletEvent::type ( ) const

Type of the event (TabletMove, TabletPress, TabletRelease)

Returns
Type of the event