SoQt
1.6.3
Coin3D GUI toolkit binding
|
The SoQtKeyboard class is the keyboard input device abstraction. More...
#include <Inventor/Qt/devices/SoQtKeyboard.h>
Public Types | |
enum | Events { KEY_PRESS = 0x01 , KEY_RELEASE = 0x02 , ALL_EVENTS = KEY_PRESS | KEY_RELEASE } |
Public Member Functions | |
SoQtKeyboard (int eventmask=ALL_EVENTS) | |
virtual | ~SoQtKeyboard (void) |
virtual void | disable (QWidget *widget, SoQtEventHandler *handler, void *closure) |
virtual void | enable (QWidget *widget, SoQtEventHandler *handler, void *closure) |
virtual const SoEvent * | translateEvent (QEvent *event) |
Public Member Functions inherited from SoQtDevice | |
virtual | ~SoQtDevice () |
SbVec2s | getWindowSize (void) const |
void | setWindowSize (const SbVec2s size) |
Public Member Functions inherited from SoQtObject | |
virtual SoType | getTypeId (void) const =0 |
SbBool | isOfType (SoType type) const |
Additional Inherited Members | |
Static Public Member Functions inherited from SoQtDevice | |
static void | initClasses (void) |
Static Public Member Functions inherited from SoQtObject | |
static SoType | getClassTypeId (void) |
static void | init (void) |
static void | initClass (void) |
Protected Member Functions inherited from SoQtDevice | |
SoQtDevice (void) | |
void | addEventHandler (QWidget *, SoQtEventHandler *, void *) |
void | invokeHandlers (QEvent *event) |
void | removeEventHandler (QWidget *, SoQtEventHandler *, void *) |
void | setEventPosition (SoEvent *event, int x, int y) const |
Static Protected Member Functions inherited from SoQtDevice | |
static SbVec2s | getLastEventPosition (void) |
The SoQtKeyboard class is the keyboard input device abstraction.
The SoQtKeyboard class is the glue between native keyboard handling and keyboard interaction with the Inventor scene graph.
All components derived from the SoQtRenderArea have got an SoQtKeyboard device attached by default.
enum SoQtKeyboard::Events |
SoQtKeyboard::SoQtKeyboard | ( | 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 SoQtDevice.
|
virtual |
This method will enable the device for the widget.
handler is invoked with the closure argument when an event occur in widget.
Implements SoQtDevice.
|
virtual |
This method translates from native events to Open Inventor SoEvent events.
Implements SoQtDevice.