other versions
- wheezy 1.5.0-2
- wheezy-backports 1.6.0~e8310f-1~bpo70+1
- jessie 1.6.0~e8310f-2
- testing 1.6.0~e8310f-3
- unstable 1.6.0~e8310f-3
SoQtKeyboard(3) | SoQt | SoQtKeyboard(3) |
NAME¶
SoQtKeyboard - 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 scenegraph.SYNOPSIS¶
#include <Inventor/Qt/devices/SoQtKeyboard.h> Inherits SoQtDevice.Public Types¶
enum Events { KEY_PRESS = 0x01, KEY_RELEASE = 0x02, ALL_EVENTS = KEY_PRESS | KEY_RELEASE }
Public Member Functions¶
SoQtKeyboard (int eventmask=ALL_EVENTS)
Friends¶
class SoQtKeyboardP
Detailed Description¶
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 scenegraph.Member Enumeration Documentation¶
enum SoQtKeyboard::Events Enumeration over supported event types.¶
Enumerator:- KEY_PRESS
- Maskbit for a keyboard button press event.
- KEY_RELEASE
- Maskbit for a keyboard button release event.
- ALL_EVENTS
- Combined bitmask for all possible events.
Constructor & Destructor Documentation¶
SoQtKeyboard::SoQtKeyboard (intmask = ALL_EVENTS) Constructor. The mask specifies which keyboard-related events to handle. Others will just be ignored.¶
SoQtKeyboard::~SoQtKeyboard (void) [virtual] Destructor.¶
Member Function Documentation¶
void SoQtKeyboard::enable (QWidget *widget, SoQtEventHandler *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 SoQtDevice.void SoQtKeyboard::disable (QWidget *widget, SoQtEventHandler *handler, void *closure) [virtual] This method will disable the handler for the device.¶
Implements SoQtDevice.const SoEvent * SoQtKeyboard::translateEvent (QEvent *event) [virtual] This method translates from native events to Open Inventor SoEvent events.¶
Implements SoQtDevice. References SoQtDevice::getLastEventPosition(), KEY_PRESS, KEY_RELEASE, and SoQtDevice::setEventPosition().Author¶
Generated automatically by Doxygen for SoQt from the source code.Sun Dec 11 2011 | Version 1.5.0 |