![]() |
Coin3D is Free Software, published under the BSD 3-clause license. |
https://bitbucket.org/Coin3D/ http://www.kongsberg.com/kogt/ |
The SoWinKeyboard class is the keyboard input device abstraction. More...
#include <Inventor/Win/devices/SoWinKeyboard.h>
Public Types | |
enum | Events { KEY_PRESS = 0x01, KEY_RELEASE = 0x02, ALL_EVENTS = KEY_PRESS | KEY_RELEASE } |
Public Member Functions | |
SoWinKeyboard (int eventmask=ALL_EVENTS) | |
virtual | ~SoWinKeyboard (void) |
virtual void | enable (HWND widget, SoWinEventHandler *handler, void *closure) |
virtual void | disable (HWND widget, SoWinEventHandler *handler, void *closure) |
virtual const SoEvent * | translateEvent (MSG *event) |
![]() | |
virtual | ~SoWinDevice () |
void | setWindowSize (const SbVec2s size) |
SbVec2s | getWindowSize (void) const |
![]() | |
virtual SoType | getTypeId (void) const =0 |
SbBool | isOfType (SoType type) const |
Additional Inherited Members | |
![]() | |
static void | initClasses (void) |
![]() | |
static void | initClass (void) |
static SoType | getClassTypeId (void) |
static void | init (void) |
![]() | |
SoWinDevice (void) | |
void | setEventPosition (SoEvent *event, int x, int y) const |
void | addEventHandler (HWND, SoWinEventHandler *, void *) |
void | removeEventHandler (HWND, SoWinEventHandler *, void *) |
void | invokeHandlers (MSG *event) |
![]() | |
static SbVec2s | getLastEventPosition (void) |
The SoWinKeyboard class is the keyboard input device abstraction.
The SoWinKeyboard class is the glue between native keyboard handling and keyboard interaction with the Inventor scenegraph.
All components derived from the SoWinRenderArea have got an SoWinKeyboard device attached by default.
SoWinKeyboard::SoWinKeyboard | ( | 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 enable the device for the widget.
handler is invoked with the closure argument when an event occur in widget.
Implements SoWinDevice.
|
virtual |
This method will disable the handler for the device.
Implements SoWinDevice.
|
virtual |
This method translates from native events to Open Inventor SoEvent events.
Implements SoWinDevice.