|
http://www.sim.no http://www.coin3d.org |
#include <Inventor/Xt/devices/SoXtKeyboard.h>
Inheritance diagram for SoXtKeyboard:

The SoXtKeyboard class is the glue between native keyboard handling and keyboard interaction with the Inventor scenegraph.
All components derived from the SoXtRenderArea have got an SoXtKeyboard device attached by default.
Public Types | |
| KEY_PRESS = 0x01 | |
| KEY_RELEASE = 0x02 | |
| ALL_EVENTS = KEY_PRESS | KEY_RELEASE | |
| enum | Events { KEY_PRESS = 0x01, KEY_RELEASE = 0x02, ALL_EVENTS = KEY_PRESS | KEY_RELEASE } |
Public Member Functions | |
| SoXtKeyboard (int eventmask=ALL_EVENTS) | |
| virtual | ~SoXtKeyboard (void) |
| virtual void | enable (Widget widget, SoXtEventHandler *handler, void *closure) |
| virtual void | disable (Widget widget, SoXtEventHandler *handler, void *closure) |
| virtual const SoEvent * | translateEvent (XAnyEvent *event) |
Friends | |
| class | SoXtKeyboardP |
| class | SoGuiKeyboardP |
| enum SoXtKeyboard::Events |
| SoXtKeyboard::SoXtKeyboard | ( | int | mask = ALL_EVENTS |
) |
Constructor. The mask specifies which keyboard-related events to handle. Others will just be ignored.
| SoXtKeyboard::~SoXtKeyboard | ( | void | ) | [virtual] |
Destructor.
| void SoXtKeyboard::enable | ( | Widget | widget, | |
| SoXtEventHandler * | handler, | |||
| void * | closure | |||
| ) | [virtual] |
This method will enable the device for the widget.
handler is invoked with the closure argument when an event occur in widget.
Implements SoXtDevice.
| void SoXtKeyboard::disable | ( | Widget | widget, | |
| SoXtEventHandler * | handler, | |||
| void * | closure | |||
| ) | [virtual] |
This method will disable the handler for the device.
Implements SoXtDevice.
| const SoEvent * SoXtKeyboard::translateEvent | ( | XAnyEvent * | event | ) | [virtual] |
This method translates from native events to Open Inventor SoEvent events.
Implements SoXtDevice.
Copyright © 1998-2005 by Systems in Motion AS. All rights reserved.
Generated on Tue Dec 2 23:15:46 2008 for SoXt by Doxygen. 1.4.7