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

#include <aurore/core/touch/long_press_gesture.hpp>

Inheritance diagram for aurore::LongPressGestureRecognizer:
aurore::GestureRecognizer

Public Member Functions

 LongPressGestureRecognizer (View *view, std::function< void()> respond, Time duration=500, float slop=16)
 
GestureState recognitionLoop (TouchState touch, MouseState mouse, View *view, Sound *soundToPlay) override
 
- Public Member Functions inherited from aurore::GestureRecognizer
virtual ~GestureRecognizer ()
 
void interrupt (bool onlyIfUnsureState)
 
bool isEnabled () const
 
void setEnabled (bool enabled)
 
GestureState getState () const
 

Additional Inherited Members

- Protected Attributes inherited from aurore::GestureRecognizer
GestureState state = GestureState::FAILED
 
bool enabled = true
 

Constructor & Destructor Documentation

◆ LongPressGestureRecognizer()

aurore::LongPressGestureRecognizer::LongPressGestureRecognizer ( View *  view,
std::function< void()>  respond,
Time  duration = 500,
float  slop = 16 
)

Member Function Documentation

◆ recognitionLoop()

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

Reimplemented from aurore::GestureRecognizer.


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