Lumiera
0.pre.03
»edit your freedom«
|
#include "stage/interact/cmd-context.hpp"
Collaboration interface for tracking the formation of a gesture.
The Subject (of the Gesture) provides an actual GestureObserver as an adapter, and the gesture controller uses this adapter to push events to track and form the gesture. When the conditions for completing the gesture are met, the Subject will be notified through this adapter and might issue a command to propagate the results of the gesture, while the gesture controller, after this notification, proceeds to disable and discard the gesture context and return to passive mode, waiting for the next trigger condition.
Definition at line 97 of file cmd-context.hpp.
Public Member Functions | |
GestureObserver (Symbol cmdID) | |
GestureObserver (GestureObserver &&)=default | |
virtual | ~GestureObserver () |
this is an interface | |
Symbol | getCmdID () const |
virtual void | markGestureCompleted ()=0 |
GestureObserver & | operator= (GestureObserver &&)=default |
virtual void | updateOffset (double deltaX, double deltaY)=0 |
Private Attributes | |
Symbol | cmdID_ |
Additional Inherited Members | |
Protected Member Functions inherited from MoveAssign | |
MoveAssign (MoveAssign &&)=default | |
MoveAssign (MoveAssign const &)=delete | |
MoveAssign & | operator= (MoveAssign &&)=default |
MoveAssign & | operator= (MoveAssign const &)=delete |