|
Aurore
A Switch-like interface for your app, on every screen
|
#include <aurore/core/touch/long_press_gesture.hpp>
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 |
| aurore::LongPressGestureRecognizer::LongPressGestureRecognizer | ( | View * | view, |
| std::function< void()> | respond, | ||
| Time | duration = 500, |
||
| float | slop = 16 |
||
| ) |
|
overridevirtual |
Reimplemented from aurore::GestureRecognizer.