SoMouseButtonEvent(3)
SoMouseButtonEvent(3) π Library Functions Manual but make it fashion β¨
Okay bestie, welcome to the mouse button event page. This is the manual for SoMouseButtonEvent, and it's giving exactly what it says on the tin: info about mousebutton interaction. ππ
NAME π
SoMouseButtonEvent β the class that contains information about mousebutton interaction. π±οΈβ¨
SYNOPSIS π¦
#include <Inventor/events/SoMouseButtonEvent.h>
Inherits SoButtonEvent.
Public Types πΈ
enum Button { ANY, BUTTON1, BUTTON2, BUTTON3, BUTTON4, BUTTON5 }
Public Types inherited from SoButtonEvent π
enum State { UP, DOWN, UNKNOWN }
Public Member Functions π
virtual SoType getTypeId (void) const
SoMouseButtonEvent (void)
virtual ~SoMouseButtonEvent ()
void setButton (SoMouseButtonEvent::Button button)
SoMouseButtonEvent::Button getButton (void) const
Public Member Functions inherited from SoButtonEvent π«Ά
SoButtonEvent (void)
virtual ~SoButtonEvent ()
void setState (SoButtonEvent::State state)
SoButtonEvent::State getState (void) const
Public Member Functions inherited from SoEvent π
SoEvent (void)
virtual ~SoEvent ()
SbBool isOfType (SoType type) const
void setTime (const SbTime t)
SbTime getTime (void) const
void setPosition (const SbVec2s &p)
const SbVec2s & getPosition (void) const
const SbVec2s getPosition (const SbViewportRegion &vpRgn) const
const SbVec2f getNormalizedPosition (const SbViewportRegion &vpRgn)
const
void setShiftDown (SbBool isDown)
SbBool wasShiftDown (void) const
void setCtrlDown (SbBool isDown)
SbBool wasCtrlDown (void) const
void setAltDown (SbBool isDown)
SbBool wasAltDown (void) const
Static Public Member Functions β
static SoType getClassTypeId (void)
static SbBool isButtonPressEvent (const SoEvent *e,
SoMouseButtonEvent::Button whichButton)
static SbBool isButtonReleaseEvent (const SoEvent *e,
SoMouseButtonEvent::Button whichButton)
static void initClass (void)
Static Public Member Functions inherited from SoButtonEvent π«
static SoType getClassTypeId (void)
static void initClass (void)
Static Public Member Functions inherited from SoEvent π«
static SoType getClassTypeId (void)
static void initClass (void)
Detailed Description π
The SoMouseButtonEvent class contains information about mousebutton interaction. π±οΈ
When the user presses any buttons on the mouse, these will be translated from a system specific event into a Coin event and sent to the scenegraph by using instances of this class. β¨
See also:
SoEventSoButtonEventSoSpaceballButtonEventSoKeyboardEventSoEventCallbackSoHandleEventAction
Member Enumeration Documentation π₯
enum SoMouseButtonEvent::Button
This enum contains all mouse buttons detected by Coin. π
Enumerator
ANYβ Unknown button. πBUTTON1β First mouse button (usually the leftmost button). πBUTTON2β Second mouse button (usually the middle button). πBUTTON3β Third mouse button (usually the rightmost button). πBUTTON4β Fourth mouse button (typically from a wheelmouse). This is not part of the original Open Inventor API. π±οΈBUTTON5β Fifth mouse button (typically from a wheelmouse). This is not part of the original Open Inventor API. π±οΈ
Constructor & Destructor Documentation π
SoMouseButtonEvent::SoMouseButtonEvent (void )
Constructor. β¨
References ANY.
Referenced by getTypeId(), initClass(), isButtonPressEvent(), and isButtonReleaseEvent().
SoMouseButtonEvent::~SoMouseButtonEvent () [virtual]
Destructor. π
Member Function Documentation π
SoType SoMouseButtonEvent::getTypeId (void ) const [virtual]
Returns the actual type id of an instantiated object. π
Reimplemented from SoButtonEvent.
References SoMouseButtonEvent().
void SoMouseButtonEvent::setButton (SoMouseButtonEvent::Button buttonarg)
Set the value of the button which the user interacted with. π―
This method is used from the window specific device classes when translating events to the generic Coin library. πͺ
See also getButton().
SoMouseButtonEvent::Button SoMouseButtonEvent::getButton (void ) const
Returns the value of the button which was pressed or released. π±οΈ
See also getState(), wasShiftDown(), wasCtrlDown(), wasAltDown(), getPosition(), getTime().
Referenced by isButtonPressEvent(), and isButtonReleaseEvent().
SbBool SoMouseButtonEvent::isButtonPressEvent (const SoEvent * e, SoMouseButtonEvent::Button whichButton) [static]
Convenience method for quickly checking if the given event is a press on the given button, whichButton. π
See also isButtonReleaseEvent(), isOfType(), getButton(), getState().
References ANY, SoButtonEvent::DOWN, getButton(), SoButtonEvent::getState(), SoEvent::isOfType(), SoEvent::SoEvent(), and SoMouseButtonEvent().
Referenced by SoVRMLAnchor::handleEvent(), and SoWWWAnchor::handleEvent().
SbBool SoMouseButtonEvent::isButtonReleaseEvent (const SoEvent * e, SoMouseButtonEvent::Button whichButton) [static]
Convenience method for quickly checking if the given event is a release of the given button, whichButton. π
See also isButtonPressEvent(), isOfType(), getButton(), getState().
References ANY, getButton(), SoButtonEvent::getState(), SoEvent::isOfType(), SoEvent::SoEvent(), SoMouseButtonEvent(), and SoButtonEvent::UP.
void SoMouseButtonEvent::initClass (void ) [static]
Initialize the type information data. π οΈ
References SoButtonEvent::SoButtonEvent(), and SoMouseButtonEvent().
Author π€
Generated automatically by Doxygen for Coin from the source code. π
Coin β’ Version 2.5.0 β’ SoMouseButtonEvent(3) β that's the footer tea, bestie. No date in the footer, just pure Coin energy. Stay iconic. π
β¨
π¦ where this page comes from
- fedora 43: Coin2-devel 2.5.0-52.fc43 Β· GPL-2.0-only
- fedora 43: Coin2-devel 2.5.0-52.fc43 Β· GPL-2.0-only
- fedora 44: Coin2-devel 2.5.0-54.fc44 Β· GPL-2.0-only
- fedora 44: Coin2-devel 2.5.0-54.fc44 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms