mouseDragged(atPositionX:positionY:activePart:modifiers:forceUpdate:at:)
Provides information when the left mouse button is pressed and the pointer is moved with the mouse button still down.
Declaration
func mouseDragged(atPositionX mousePositionX: Double, positionY mousePositionY: Double, activePart: Int, modifiers: FxModifierKeys, forceUpdate: UnsafeMutablePointer<ObjCBool>!, at time: CMTime)Parameters
- mousePositionX:
X position of the pointer (in ‘drawingCoordinates’ space).
- mousePositionY:
Y position of the pointer (in ‘drawingCoordinates’ space).
- activePart:
The active part of the control that currently contains the pointer.
- modifiers:
The keyboard modifiers currently pressed.
- forceUpdate:
Set to
YESif the filter/generator associated with this control needs to be re-calculated;NOotherwise. - time:
The current time when the pointer was moved.
Mentioned in
Discussion
Depending on the host application, the time value may be relative to the start of the timeline or to the start of the clip. See the header file FxPlug/FxHostCapabilities.h.
See Also
Instance Methods
drawOSC(withWidth:height:activePart:destinationImage:at:)drawingCoordinates()hitTestOSC(atMousePositionX:mousePositionY:activePart:at:)keyDown(atPositionX:positionY:keyPressed:modifiers:forceUpdate:didHandle:at:)keyUp(atPositionX:positionY:keyPressed:modifiers:forceUpdate:didHandle:at:)mouseDown(atPositionX:positionY:activePart:modifiers:forceUpdate:at:)mouseEntered(atPositionX:positionY:modifiers:forceUpdate:at:)mouseExited(atPositionX:positionY:modifiers:forceUpdate:at:)mouseMoved(atPositionX:positionY:activePart:modifiers:forceUpdate:at:)mouseUp(atPositionX:positionY:activePart:modifiers:forceUpdate:at:)