SOXTMOUSE(3iv)
π SoXtMouse(3IV) β the mouse translator girlies have been WAITING π
okay bestie, sit DOWN, because this one is literally the mouse's whole personality in a header file. SoXtMouse translates and reports events for the mouse. That's it. That's the job. She's the middlewoman between your clicky little friend and the rest of the toolkit, and she is so good at it. πβ¨
This page lives in section 3IV of the manual, so keep that in mind if you're citing her. iykyk.
πΈ INHERITS FROM πΈ
SoXtDevice > SoXtMouse
so yeah, she's a SoXtDevice at heart, and SoXtMouse is the glow-up. the family tree is giving legacy code but make it fashion. π
β¨ SYNOPSIS β¨
#include <Inventor/Xt/devices/SoXtMouse.h>
#define SO_XT_ALL_MOUSE_EVENTS
(ButtonPressMask | ButtonReleaseMask |
PointerMotionMask | ButtonMotionMask)
Methods from class SoXtMouse:
SoXtMouse(EventMask mask = SO_XT_ALL_MOUSE_EVENTS)
~SoXtMouse()
Methods from class SoXtDevice:
virtual void enable(Widget w, XtEventHandler f, XtPointer
data, Window win = NULL)
virtual void disable(Widget w, XtEventHandler f, XtPointer
data)
virtual const SoEvent * translateEvent(XAnyEvent *xevent)
void setWindowSize(const SbVec2s &size)
const SbVec2s & getWindowSize() const
look at that lineup. the whole squad is here. π«Ά
π¦ DESCRIPTION π¦
This class manages events generated by the mouse. all of them. the whole mouse situation. π
That includes:
- mouse motion β she hands you an
SoLocation2Event - mouse button press and release β she hands you an
SoMouseButtonEvent
she's not doing anything weird with it, she's just translating and reporting, which is honestly the most reliable friend behavior. no cap. π
π METHODS π
π Constructor & Destructor π
SoXtMouse(EventMask mask = SO_XT_ALL_MOUSE_EVENTS)
~SoXtMouse()
Constructor and destructor, babes. the birth and the farewell. π₯Ή
To the constructor, you pass which mouse events you are interested in as a bitwise OR of the following values β and yes, you have to pick, she's not a mind reader (she's a mouse reader):
ButtonPressMaskβ mouse press events π±οΈButtonReleaseMaskβ mouse release eventsPointerMotionMaskβ mouse motion with no buttonsButtonMotionMaskβ mouse motion with buttons pressed
Or, and this is the lazy-girl-friend-approved option, simply pass the defined value SO_XT_ALL_MOUSE_EVENTS for all mouse events. everything. the full buffet. β¨
real talk though: the device will only report events of this type, and only for the widget it is enabled on. so if you didn't ask for it, you're not getting it. the vibe check is strict and that's a good thing. π
π SEE ALSO π
SoXtDeviceSoLocation2EventSoMouseButtonEvent
go read those too, bestie, they're the supporting cast and they ate. π₯
mwah π that's the whole page. this one came from the SoXtMouse manpage, section 3IV, footer date field left blank (the version/date line was literally just the title again β not me being mysterious, that's just how the page ships π). now go forth and handle those events. periodt. πβ¨
π¦ where this page comes from
- debian bookworm: inventor-doc 2.1.5-10+dfsg-2 Β· LGPL-2.0-or-later
- debian trixie: inventor-doc 2.1.6+ds-2 Β· LGPL-2.0-or-later
- ubuntu jammy: inventor-doc 2.1.5-10-24
- ubuntu noble: inventor-doc 2.1.5-10+dfsg-2.1build2 Β· LGPL-2.0-or-later
- ubuntu questing: inventor-doc 2.1.6+ds-2
- ubuntu resolute: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- ubuntu stonking: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms