SoButtonEvent(3iv)

SoButtonEvent3iv

Base class for all button events

Usage

#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

Inherits from

SoEvent > SoButtonEvent

Overview

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.

Methods

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.

Releases

Unchanged in 9 releases since Debian 3.0 (Woody).

  1. 3.0–13

From inventor-doc 2.1.6+ds-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.