#include "ofxCore.h" #define kOfxInteractActionPenMotion "OfxInteractActionPenMotion"
handle
handle to an interact instance, cast to an OfxInteractHandle
inArgs
has the following properties on an image effect plugin,
kOfxPropEffectInstance
- a handle to the effect for which the interact has been,kOfxInteractPropViewportSize
- the openGL viewport size for the instancekOfxInteractPropPixelScale
- the scale factor to convert cannonical pixels to screen pixelskOfxInteractPropBackgroundColour
- the background colour of the application behind the current viewkOfxPropTime
- the effect time at which changed occuredkOfxImageEffectPropRenderScale
- the render scale applied to any image fetchedkOfxInteractPropPenPosition
- postion of the pen in,kOfxInteractPropPenViewportPosition
- postion of the pen in,kOfxInteractPropPenPressure
- the pressure of the pen,outArgs
is redundant and is set to NULL.
This action is issued whenever the pen moves an the interact's has focus. It should be issued whether the pen is currently up or down.
No openGL calls should be issued by the plug-in during this action.
kOfxActionCreateInstance
has been called on the instance handle,kOfxInteractActionGainFocus
called on it
kOfxStatOK
, the host should not pass
the pen motion to any other interactive object it may own that shares the same view.
kOfxStatOK
, the action was trapped and the host should not pass the event to other objects it may ownkOfxStatReplyDefault
, the action was not trapped and the host can deal with it if it wants