DOKK / manpages / debian 12 / inventor-doc / SoButtonEvent.3iv.en
SoButtonEvent(3IV)() SoButtonEvent(3IV)()

SoButtonEvent — base class for all button events

SoEvent > SoButtonEvent

#include <Inventor/events/SoButtonEvent.h>


enum State {

SoButtonEvent::UP Button up event

SoButtonEvent::DOWN Button down event

SoButtonEvent::UNKNOWN Button in unknown state

}


Methods from class SoButtonEvent:


SoButtonEvent()

static SoType getClassTypeId()

void setState(SoButtonEvent::State s)

SoButtonEvent::State getState() const


Methods from class SoEvent:


virtual SoType getTypeId() const

SbBool isOfType(SoType type) const

void setTime(SbTime t)

SbTime getTime() const

void setPosition(const SbVec2s &p)

const SbVec2s & getPosition() const

const SbVec2s & getPosition(const SbViewportRegion &vpRgn) const

const SbVec2f & getNormalizedPosition(const SbViewportRegion &vpRgn) const

void setShiftDown(SbBool isDown)

void setCtrlDown(SbBool isDown)

void setAltDown(SbBool isDown)

SbBool wasShiftDown() const

SbBool wasCtrlDown() const

SbBool wasAltDown() const

SoButtonEvent represents generic button press and release events in the Inventor event model. It is the base class for device-specific button events, namely SoKeyboardEvent, SoMouseButtonEvent, and SoSpaceballButtonEvent. This class stores the down/up state of the button when the event occurred.


SoButtonEvent()

Constructor.



static SoType getClassTypeId()

Return the type id for the SoButtonEvent class.



void setState(SoButtonEvent::State s)

SoButtonEvent::State getState() const

Set and get the state of the button.


SoEvent, SoKeyboardEvent, SoLocation2Event, SoMotion3Event, SoMouseButtonEvent, SoSpaceballButtonEvent, SoHandleEventAction, SoEventCallback, SoSelection, SoInteraction, SoXtDevice