QGestureRecognizer Class Reference

QGestureRecognizer Class Referenceabstract

#include <qgesturerecognizer.h>

Class Description

Definition at line 59 of file qgesturerecognizer.h.

Public Types

enum  ResultFlag {
  Ignore = 0x0001, MayBeGesture = 0x0002, TriggerGesture = 0x0004, FinishGesture = 0x0008,
  CancelGesture = 0x0010, ResultState_Mask = 0x00ff, ConsumeEventHint = 0x0100, ResultHint_Mask = 0xff00
}
 

Public Member Functions

 QGestureRecognizer ()
 
virtual ~QGestureRecognizer ()
 
virtual QGesturecreate (QObject *target)
 
virtual Result recognize (QGesture *state, QObject *watched, QEvent *event)=0
 
virtual void reset (QGesture *state)
 

Static Public Member Functions

static Qt::GestureType registerRecognizer (QGestureRecognizer *recognizer)
 
static void unregisterRecognizer (Qt::GestureType type)
 

Member Enumeration Documentation

enum ResultFlag
Enumerator
Ignore 
MayBeGesture 
TriggerGesture 
FinishGesture 
CancelGesture 
ResultState_Mask 
ConsumeEventHint 
ResultHint_Mask 

Definition at line 62 of file qgesturerecognizer.h.

63  {
64  Ignore = 0x0001,
65 
66  MayBeGesture = 0x0002,
67  TriggerGesture = 0x0004,
68  FinishGesture = 0x0008,
69  CancelGesture = 0x0010,
70 
71  ResultState_Mask = 0x00ff,
72 
73  ConsumeEventHint = 0x0100,
74  // StoreEventHint = 0x0200,
75  // ReplayStoredEventsHint = 0x0400,
76  // DiscardStoredEventsHint = 0x0800,
77 
78  ResultHint_Mask = 0xff00
79  };

Constructor & Destructor Documentation

virtual ~QGestureRecognizer ( )
virtual

Member Function Documentation

virtual QGesture* create ( QObject target)
virtual
virtual Result recognize ( QGesture state,
QObject watched,
QEvent event 
)
pure virtual
virtual void reset ( QGesture state)
virtual
static Qt::GestureType registerRecognizer ( QGestureRecognizer recognizer)
static
static void unregisterRecognizer ( Qt::GestureType  type)
static

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