SoButtonEvent(3)
π SoButtonEvent(3) π
okay bestie, welcome to the SoButtonEvent(3) page from the Library Functions Manual. it's giving base-class realness, and yes, every button event wants to be here. π«Ά
β¨ NAME β¨
SoButtonEvent β The SoButtonEvent class is the base class for all button events.
πΈ SYNOPSIS πΈ
#include <Inventor/events/SoButtonEvent.h>
Inherits SoEvent.
Inherited by SoKeyboardEvent, SoMouseButtonEvent, and SoSpaceballButtonEvent.
π Public Types π
enum State { UP, DOWN, UNKNOWN }
π«Ά Public Member Functions π«Ά
virtual SoType getTypeId (void) const
SoButtonEvent (void)
virtual ~SoButtonEvent ()
void setState (State state)
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 void initClass (void)
static SbBool enumToString (State enumval, SbString &stringrep)
π 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.
Every event class that shows up when someone pushes buttons on a device β keyboard, mouse, or spaceball β inherits this class. SoButtonEvent is where the methods for setting and getting the state of the button(s) live.
π See also π
SoEvent,SoKeyboardEvent,SoMouseButtonEvent,SoSpaceballButtonEventSoEventCallback,SoHandleEventAction
π Member Enumeration Documentation π
enum SoButtonEvent::State
This gives the actual state of the button.
Enumerator
UPβ Button has been released.DOWNβ Button has been pressed down.UNKNOWNβ The state of the button is unknown.
π Constructor & Destructor Documentation π
SoButtonEvent::SoButtonEvent (void )
Constructor.
SoButtonEvent::~SoButtonEvent () [virtual]
Destructor.
β¨ Member Function Documentation β¨
SoType SoButtonEvent::getTypeId (void ) const [virtual]
Returns the actual type id of an instantiated object.
Reimplemented from SoEvent.
Reimplemented in SoKeyboardEvent, SoMouseButtonEvent, and SoSpaceballButtonEvent.
void SoButtonEvent::initClass (void ) [static]
Initialize the type information data.
void SoButtonEvent::setState (SoButtonEvent::State state)
Set the state 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
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.
See also
wasShiftDown(),wasCtrlDown(),wasAltDown(),getPosition(),getTime()
SbBool SoButtonEvent::enumToString (State enumval, SbString & stringrep) [static]
Converts from an enum value of type SoButtonEvent::State to a string containing the enum symbol.
This function is an extension for Coin, and it is not available in the original SGI Open Inventor v2.1 API.
Since: Coin 3.0
πΈ Author πΈ
Generated automatically by Doxygen for Coin from the source code.
and that's the whole page bestie π the footer says Coin, Version 3.1.3, page SoButtonEvent(3) β no date on it, just iconic energy. periodt β¨
π¦ where this page comes from
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.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