ViewportWidget::SetTrackTaskCallback
Defined in:
Sets the track task callback function for a viewport widget.
C4Viewports.h
Prototype
void SetTrackTaskCallback(TrackTaskCallback *callback, void *cookie = nullptr);
Parameters
callback |
A pointer to the track task callback function. |
cookie |
A user-defined pointer that is passed to the callback function. |
Description
The SetTrackTaskCallback
function installs a callback function that is called once per frame after a mouse down event has occurred inside a viewport widget and before a mouse up event occurs. The callback
parameter should point to a function having the following prototype.
typedef void TrackTaskCallback(const Point2D&, ViewportWidget *, void *);
cookie
parameter.The current track task callback function is called when the viewport widget's
Widget::TrackTask
function is called by the Interface Manager.If the
callback
parameter is nullptr
, then any currently installed track task callback function is removed.
See Also
ViewportWidget::SetMouseEventCallback