My Project
Public Types | Public Member Functions | Public Attributes | List of all members
ParaEngine::CTouchGesturePinch Class Reference

Touch gesture recognizer. More...

#include <TouchGesturePinch.h>

Inheritance diagram for ParaEngine::CTouchGesturePinch:
ParaEngine::CTouchGestureBase ParaEngine::CRefCounted

Public Types

enum  PinchMode { PinchMode_Nil = 0, PinchMode_Open, PinchMode_Closed }
 
typedef std::function< bool(CTouchGesturePinch &pinch_gesture)> GestureRecognized_callback
 

Public Member Functions

int GetPinchThreshold () const
 
void SetPinchThreshold (int val)
 
bool IsActive () const
 
PinchMode Pinch_mode () const
 
void ResetLastDistance ()
 
int GetDeltaDistance ()
 
virtual bool InterpreteTouchGesture (const TouchEvent *touch, TouchSessions *touch_sessions=NULL)
 
- Public Member Functions inherited from ParaEngine::CRefCounted
void addref () const
 add reference count of the object. More...
 
bool delref () const
 decrease reference count of the object. More...
 
int GetRefCount () const
 get the reference count
 
virtual int Release ()
 
CRefCountedAddToAutoReleasePool ()
 addref and releases the ownership sometime soon automatically (usually at the end of the current frame). More...
 

Public Attributes

int m_nPinchThreshold
 
PinchMode m_pinch_mode
 
int m_lastDistance
 
int m_distance
 
bool m_isActive
 
GestureRecognized_callback handleGestureRecognized
 return true if handled
 

Additional Inherited Members

- Protected Attributes inherited from ParaEngine::CRefCounted
int m_refcount
 

Detailed Description

Touch gesture recognizer.


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