SoXtMouse — translates and reports events for the mouse
Contents
Description
This class manages events generated by the mouse, including mouse motion (SoLocation2Event), and mouse
button press and release events (SoMouseButtonEvent).
Inherits From
SoXtDevice > SoXtMouse
Methods
SoXtMouse(EventMaskmask=SO_XT_ALL_MOUSE_EVENTS)~SoXtMouse()
Constructor and destructor. To the constructor, pass which mouse events you are interested in as a
bitwise OR of the following values:
ButtonPressMask — Mouse press events
ButtonReleaseMask — Mouse release events
PointerMotionMask — Mouse motion with no buttons
ButtonMotionMask — Mouse motion with buttons pressed
Or simply pass the defined value SO_XT_ALL_MOUSE_EVENTS for all mouse events. The device will only
report events of this type for the widget it is enabled on.
Name
SoXtMouse — translates and reports events for the mouse
See Also
SoXtDevice,SoLocation2Event,SoMouseButtonEventSoXtMouse(3IV)()
Synopsis
#include<Inventor/Xt/devices/SoXtMouse.h>#defineSO_XT_ALL_MOUSE_EVENTS(ButtonPressMask|ButtonReleaseMask|PointerMotionMask|ButtonMotionMask)
Methods from class SoXtMouse:
SoXtMouse(EventMaskmask=SO_XT_ALL_MOUSE_EVENTS)~SoXtMouse()
Methods from class SoXtDevice:
virtualvoidenable(Widgetw,XtEventHandlerf,XtPointerdata,Windowwin=NULL)virtualvoiddisable(Widgetw,XtEventHandlerf,XtPointerdata)virtualconstSoEvent*translateEvent(XAnyEvent*xevent)voidsetWindowSize(constSbVec2s&size)constSbVec2s&getWindowSize()const