![]() |
Lumiera 0.pre.04~rc.1
»edit your freedom«
|
#include "stage/interact/gesture-state.hpp"
Holder for InteractionState dedicated to UI gestures and complex interactions.
write type comment...
WIP-WIP as of 3/2021
as of 3/2021 the whole scheme for addressing gestures and actual state implementations is rather just guesswork ///////////////////////////////////TODO do we need a translation unit interaction-state.cpp (otherwise delete it!)
Definition at line 67 of file gesture-state.hpp.
Public Types | |
| enum | Action { DRAG , UNKNOWN } |
| enum | Scope { ON_TIMELINE , OTHER } |
Public Member Functions | |
| GestureState () | |
| ~GestureState () | |
| InteractionState & | getStateFor (Action action, Scope qualifier) |
| Decode the classification of the kind of interaction and gesture, and thus translate to a concrete InteractionState implementation. | |
Private Attributes | |
| unique_ptr< DragRelocateController > | dragRelocate_ |
Additional Inherited Members | |
Private Member Functions inherited from NonCopyable | |
| ~NonCopyable ()=default | |
| NonCopyable ()=default | |
| NonCopyable (NonCopyable const &)=delete | |
| NonCopyable & | operator= (NonCopyable const &)=delete |
| GestureState | ( | ) |
Definition at line 61 of file gesture-state.cpp.
| ~GestureState | ( | ) |
Definition at line 59 of file gesture-state.cpp.
| enum Action |
| Enumerator | |
|---|---|
| DRAG | |
| UNKNOWN | |
Definition at line 77 of file gesture-state.hpp.
| enum Scope |
| Enumerator | |
|---|---|
| ON_TIMELINE | |
| OTHER | |
Definition at line 81 of file gesture-state.hpp.
| InteractionState & getStateFor | ( | Action | action, |
| Scope | qualifier | ||
| ) |
Decode the classification of the kind of interaction and gesture, and thus translate to a concrete InteractionState implementation.
Definition at line 76 of file gesture-state.cpp.
References GestureState::DRAG, GestureState::dragRelocate_, and GestureState::ON_TIMELINE.
|
private |
Definition at line 70 of file gesture-state.hpp.
Referenced by GestureState::getStateFor().
Inheritance diagram for GestureState:
Collaboration diagram for GestureState: