跳转到主要内容

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 & event)
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 &event)

Called when dragging the Draggable object.

The object is moved according to the drag event.

Parameters:
eventThe drag event.

Reimplemented by: touchgfx::Snapper::handleDragEvent