Draggable
touchgfx/mixins/Draggable.hpp
Mix-in class that extends a class to become Draggable, which means that the object on screen can be freely moved around using the touch screen.
Template Parameters:
- T specifies the type to extend with the Draggable behavior.
Inherits from: T
Inherited by: Snapper< T >
Public Functions
Draggable() | |
Initializes a new instance of the Draggable class. | |
virtual void | handleDragEvent(const DragEvent & event) |
Called when dragging the Draggable object. | |
Public Functions Documentation
Draggable
handleDragEvent
virtual void handleDragEvent | ( | const DragEvent & | event | ) | |
Called when dragging the Draggable object.
The object is moved according to the drag event.
Parameters:
event | The drag event. |
Reimplemented by: touchgfx::Snapper::handleDragEvent