1SoButtonEvent(3IV)()                                      SoButtonEvent(3IV)()
2
3
4

NAME

6       SoButtonEvent — base class for all button events
7

INHERITS FROM

9       SoEvent > SoButtonEvent
10

SYNOPSIS

12       #include <Inventor/events/SoButtonEvent.h>
13
14     enum State {
15          SoButtonEvent::UP       Button up event
16          SoButtonEvent::DOWN     Button down event
17          SoButtonEvent::UNKNOWN  Button in unknown state
18     }
19
20          Methods from class SoButtonEvent:
21
22                           SoButtonEvent()
23     static SoType         getClassTypeId()
24     void                  setState(SoButtonEvent::State s)
25     SoButtonEvent::State  getState() const
26
27          Methods from class SoEvent:
28
29     virtual SoType      getTypeId() const
30     SbBool              isOfType(SoType type) const
31     void                setTime(SbTime t)
32     SbTime              getTime() const
33     void                setPosition(const SbVec2s &p)
34     const SbVec2s &     getPosition() const
35     const SbVec2s &     getPosition(const SbViewportRegion &vpRgn) const
36     const  SbVec2f &     getNormalizedPosition(const SbViewportRegion &vpRgn)
37                              const
38     void                setShiftDown(SbBool isDown)
39     void                setCtrlDown(SbBool isDown)
40     void                setAltDown(SbBool isDown)
41     SbBool              wasShiftDown() const
42     SbBool              wasCtrlDown() const
43     SbBool              wasAltDown() const
44
45

DESCRIPTION

47       SoButtonEvent represents generic button press and release events in the
48       Inventor  event  model. It is the base class for device-specific button
49       events, namely SoKeyboardEvent, SoMouseButtonEvent, and SoSpaceballBut‐
50       tonEvent.  This  class  stores the down/up state of the button when the
51       event occurred.
52

METHODS

54                           SoButtonEvent()
55          Constructor.
56
57     static SoType         getClassTypeId()
58          Return the type id for the SoButtonEvent class.
59
60     void                  setState(SoButtonEvent::State s)
61     SoButtonEvent::State  getState() const
62          Set and get the state of the button.
63
64

SEE ALSO

66       SoEvent, SoKeyboardEvent, SoLocation2Event, SoMotion3Event, SoMouseBut‐
67       tonEvent, SoSpaceballButtonEvent, SoHandleEventAction, SoEventCallback,
68       SoSelection, SoInteraction, SoXtDevice
69
70
71
72
73                                                          SoButtonEvent(3IV)()
Impressum