![]() |
SoWx
0.1.0
Coin3D GUI toolkit binding
|
The SoWxKeyboard class is the keyboard input device abstraction. More...
#include <Inventor/Wx/devices/SoWxKeyboard.h>
Public Types | |
enum | Events { KEY_PRESS = 0x01 , KEY_RELEASE = 0x02 , ALL_EVENTS = KEY_PRESS | KEY_RELEASE } |
Public Member Functions | |
SoWxKeyboard (int eventmask=ALL_EVENTS) | |
virtual | ~SoWxKeyboard (void) |
virtual void | disable (wxWindow *widget, SoWxEventHandler *handler, void *closure) |
virtual void | enable (wxWindow *widget, SoWxEventHandler *handler, void *closure) |
virtual const SoEvent * | translateEvent (wxEvent &event) |
![]() | |
virtual | ~SoWxDevice () |
SbVec2s | getWindowSize (void) const |
void | setWindowSize (const SbVec2s size) |
![]() | |
virtual SoType | getTypeId (void) const =0 |
SbBool | isOfType (SoType type) const |
Additional Inherited Members | |
![]() | |
static void | initClasses (void) |
![]() | |
static SoType | getClassTypeId (void) |
static void | init (void) |
static void | initClass (void) |
![]() | |
SoWxDevice (void) | |
void | addEventHandler (wxWindow *, SoWxEventHandler *, void *) |
void | invokeHandlers (wxEvent &event) |
void | removeEventHandler (wxWindow *, SoWxEventHandler *, void *) |
void | setEventPosition (SoEvent *event, int x, int y) const |
![]() | |
static SbVec2s | getLastEventPosition (void) |
The SoWxKeyboard class is the keyboard input device abstraction.
The SoWxKeyboard class is the glue between native keyboard handling and keyboard interaction with the Inventor scene graph.
All components derived from the SoWxRenderArea have got an SoWxKeyboard device attached by default.
enum SoWxKeyboard::Events |
SoWxKeyboard::SoWxKeyboard | ( | int | mask = ALL_EVENTS | ) |
Constructor. The mask specifies which keyboard-related events to handle. Others will just be ignored.
|
virtual |
Destructor.
|
virtual |
This method will disable the handler for the device.
Implements SoWxDevice.
|
virtual |
This method will enable the device for the widget.
handler is invoked with the closure argument when an event occur in widget.
Implements SoWxDevice.
|
virtual |
This method translates from native events to Open Inventor SoEvent events.
Implements SoWxDevice.