Skip to main content
Version: 4.16

Draggable

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 voidhandleDragEvent(const DragEvent & evt)
Called when dragging the Draggable object.

Public Functions Documentation#

Draggable#

Initializes a new instance of the Draggable class.

Make the object touchable.

handleDragEvent#

virtual void handleDragEvent(const DragEvent &evt)

Called when dragging the Draggable object.

The object is moved according to the drag event.

Parameters:
evtThe drag event.

Reimplemented by: touchgfx::Snapper::handleDragEvent