Defined in:Sets the mouse event callback function for a viewport widget.
void SetMouseEventCallback(MouseEventCallback *callback, void *cookie = nullptr);
||A pointer to the mouse event callback function.|
||A user-defined pointer that is passed to the callback function.|
SetMouseEventCallbackfunction installs a callback function that is called when a mouse event occurs inside a viewport widget. The
callbackparameter should point to a function having the following prototype.
The first parameter passed to the callback function is a pointer to the mouse event data, and the second parameter is a pointer to the viewport inside which a mouse event occurred. The last parameter receives the pointer specified by the
typedef void MouseEventCallback(const MouseEventData *, ViewportWidget *, void *);
The current mouse event callback function is called when the viewport widget's
Widget::HandleMouseEventfunction is called by the Interface Manager.
nullptr, then any currently installed mouse event callback function is removed.
In between mouse down and mouse up events, the track task callback function is called once per frame if such a callback function has been installed using the