Aurore
A Switch-like interface for your app, on every screen
Loading...
Searching...
No Matches
aurore::GestureRecognizer Class Reference

#include <aurore/core/gesture.hpp>

Inheritance diagram for aurore::GestureRecognizer:
aurore::LongPressGestureRecognizer aurore::PanGestureRecognizer aurore::TapGestureRecognizer aurore::ScrollGestureRecognizer

Public Member Functions

virtual ~GestureRecognizer ()
 
virtual GestureState recognitionLoop (TouchState touch, MouseState mouse, View *view, Sound *soundToPlay)
 
void interrupt (bool onlyIfUnsureState)
 
bool isEnabled () const
 
void setEnabled (bool enabled)
 
GestureState getState () const
 

Protected Attributes

GestureState state = GestureState::FAILED
 
bool enabled = true
 

Constructor & Destructor Documentation

◆ ~GestureRecognizer()

virtual aurore::GestureRecognizer::~GestureRecognizer ( )
inlinevirtual

Member Function Documentation

◆ getState()

GestureState aurore::GestureRecognizer::getState ( ) const
inline

◆ interrupt()

void aurore::GestureRecognizer::interrupt ( bool  onlyIfUnsureState)

◆ isEnabled()

bool aurore::GestureRecognizer::isEnabled ( ) const
inline

◆ recognitionLoop()

virtual GestureState aurore::GestureRecognizer::recognitionLoop ( TouchState  touch,
MouseState  mouse,
View *  view,
Sound *  soundToPlay 
)
virtual

◆ setEnabled()

void aurore::GestureRecognizer::setEnabled ( bool  enabled)
inline

Member Data Documentation

◆ enabled

bool aurore::GestureRecognizer::enabled = true
protected

◆ state

GestureState aurore::GestureRecognizer::state = GestureState::FAILED
protected

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