Open Inventor Reference
|
Base class for all button events. More...
#include <Inventor/events/SoButtonEvent.h>
Public Types | |
enum | State { UP, DOWN, UNKNOWN } |
Public Member Functions | |
SoButtonEvent () | |
Constructor. | |
virtual | ~SoButtonEvent () |
void | setState (SoButtonEvent::State s) |
get state of the button | |
SoButtonEvent::State | getState () const |
Static Public Member Functions | |
static void | initClass () |
Initializes base event class. |
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.
Definition at line 82 of file SoButtonEvent.h.
enum SoButtonEvent::State |
Definition at line 92 of file SoButtonEvent.h.
SoButtonEvent::SoButtonEvent | ( | ) |
virtual SoButtonEvent::~SoButtonEvent | ( | ) | [virtual] |
SoButtonEvent::State SoButtonEvent::getState | ( | ) | const [inline] |
Definition at line 100 of file SoButtonEvent.h.
static void SoButtonEvent::initClass | ( | ) | [static] |
Reimplemented from SoEvent.
Reimplemented in SoKeyboardEvent, SoMouseButtonEvent, and SoSpaceballButtonEvent.
void SoButtonEvent::setState | ( | SoButtonEvent::State | s | ) | [inline] |
Definition at line 99 of file SoButtonEvent.h.