SoButtonEvent(3)
π SoButtonEvent π
okay bestie, welcome to SoButtonEvent(3) from the Library Functions Manual β this is the glow-up guide to the base class of every button event in Coin. buckle up π
β¨ NAME β¨
SoButtonEvent β the base class for all button events. yes, ALL of them. she's the mother. π
πΈ SYNOPSIS πΈ
#include <Inventor/events/SoButtonEvent.h>
Inherits SoEvent.
Inherited by SoKeyboardEvent, SoMouseButtonEvent, and SoSpaceballButtonEvent. it's giving family tree, fr fr π³
π« Public Types
enum State { UP, DOWN, UNKNOWN }
π« Public Member Functions
virtual SoType getTypeId (void) constSoButtonEvent (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) constvoid setTime (const SbTime t)SbTime getTime (void) constvoid setPosition (const SbVec2s &p)const SbVec2s & getPosition (void) constconst SbVec2s getPosition (const SbViewportRegion &vpRgn) constconst SbVec2f getNormalizedPosition (const SbViewportRegion &vpRgn) constvoid setShiftDown (SbBool isDown)SbBool wasShiftDown (void) constvoid setCtrlDown (SbBool isDown)SbBool wasCtrlDown (void) constvoid setAltDown (SbBool isDown)SbBool wasAltDown (void) const
π« Static Public Member Functions
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 SoButtonEvent class is the base class for all button events. periodt.
The event classes which results from the user pushing buttons on some device β keyboard, mouse or spaceball β all inherit this class. so like, whenever a human physically presses a thing, this is the blueprint underneath. π
The SoButtonEvent class contains methods for setting and getting the state of the button(s). set and get. the whole vibe. β¨
See also
SoEvent,SoKeyboardEvent,SoMouseButtonEvent,SoSpaceballButtonEventSoEventCallback,SoHandleEventAction
π Member Enumeration Documentation π
enum SoButtonEvent::State
This gives the actual state of the button. the vibe check of the button, if you will.
Enumerator
UPβ Button has been released. she's free, she's out, she left ποΈDOWNβ Button has been pressed down. she's committed. she's in it. πUNKNOWNβ The state of the button is unknown. mystery era, we simply do not know π
π Constructor & Destructor Documentation π
SoButtonEvent::SoButtonEvent (void )
Constructor. the birth of a button event, iconic.
References UNKNOWN.
Referenced by getTypeId(), initClass(), SoKeyboardEvent::initClass(), SoMouseButtonEvent::initClass(), SoSpaceballButtonEvent::initClass(), SoSpaceballButtonEvent::isButtonPressEvent(), SoSpaceballButtonEvent::isButtonReleaseEvent(), SoKeyboardEvent::isKeyPressEvent(), and SoKeyboardEvent::isKeyReleaseEvent().
SoButtonEvent::~SoButtonEvent () [virtual]
Destructor. rest in peace, bestie π«Ά
β Member Function Documentation β
SoType SoButtonEvent::getTypeId (void ) const [virtual]
Returns the actual type id of an instantiated object. she knows exactly who she is. no identity crisis here. π
Reimplemented from SoEvent.
Reimplemented in SoKeyboardEvent, SoMouseButtonEvent, and SoSpaceballButtonEvent.
References SoButtonEvent().
void SoButtonEvent::setState (SoButtonEvent::State state)
Set the state of the button which the user interacted with. you're literally telling the event how it's feeling today.
This method is used from the window specific device classes when translating events to the generic Coin library. iykyk π₯
See also
getState()
SoButtonEvent::State SoButtonEvent::getState (void ) const
Returns the state of the button which is the cause of the event, i.e. whether it was pushed down or released. she's the main character AND she's telling you exactly what happened. π
See also
wasShiftDown(),wasCtrlDown(),wasAltDown(),getPosition(),getTime()
Referenced by SoMouseButtonEvent::isButtonPressEvent(), and SoMouseButtonEvent::isButtonReleaseEvent().
void SoButtonEvent::initClass (void ) [static]
Initialize the type information data. gotta set up the lore before anyone shows up, no cap.
References SoButtonEvent(), and SoEvent::SoEvent().
π Author π
Generated automatically by Doxygen for Coin from the source code. yeah, the docs wrote themselves. slay. π€β¨
and that's the whole page, bestie!! this was Coin, Version 2.5.0 πͺπ thanks for reading all the way to the bottom, you're genuinely the realest β go forth and handle those events, queen ππ¦π
π¦ 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