Protocol
EntityMouseDragHandler
public protocol EntityMouseDragHandler : EventHandler, RenderableEntity
A type conforming to EntityMouseDragHandler is capable of receiving
entity mouse drag events through the onEntityMouseDrag method.
Before receiving events, it must be registered with the dispatcher via the registerEntityMouseDragHandler method. Similarly, it should be unregistered before deinitialization via the unregisterEntityMouseDragHandler method available through the dispatcher.
Relationships
Conforms To
EventHandlerAn
Eventhandleris a type capable of being registered with theDispatcherto receive events of a certain type.RenderableEntityA
RenderableEntityprovides the majority of rendering and interactive functionality by overriding the required methods and working with theDispatcherto register events of intrest.
Requirements
onEntityMouseDrag(globalLocation:movement:)
func onEntityMouseDrag(globalLocation:Point, movement:Point)