.TH "SoQtKeyboard" 3 "Sun Dec 11 2011" "Version 1.5.0" "SoQt" \" -*- nroff -*- .ad l .nh .SH NAME SoQtKeyboard \- .PP The \fBSoQtKeyboard\fP class is the keyboard input device abstraction\&. .PP The \fBSoQtKeyboard\fP class is the glue between native keyboard handling and keyboard interaction with the Inventor scenegraph\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBSoQtDevice\fP\&. .SS "Public Types" .in +1c .ti -1c .RI "enum \fBEvents\fP { \fBKEY_PRESS\fP = 0x01, \fBKEY_RELEASE\fP = 0x02, \fBALL_EVENTS\fP = KEY_PRESS | KEY_RELEASE }" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBSoQtKeyboard\fP (int eventmask=\fBALL_EVENTS\fP)" .br .ti -1c .RI "virtual \fB~SoQtKeyboard\fP (void)" .br .ti -1c .RI "virtual void \fBenable\fP (QWidget *widget, SoQtEventHandler *handler, void *closure)" .br .ti -1c .RI "virtual void \fBdisable\fP (QWidget *widget, SoQtEventHandler *handler, void *closure)" .br .ti -1c .RI "virtual const SoEvent * \fBtranslateEvent\fP (QEvent *event)" .br .in -1c .SS "Friends" .in +1c .ti -1c .RI "class \fBSoQtKeyboardP\fP" .br .ti -1c .RI "class \fBSoGuiKeyboardP\fP" .br .in -1c .SH "Detailed Description" .PP The \fBSoQtKeyboard\fP class is the keyboard input device abstraction\&. .PP The \fBSoQtKeyboard\fP class is the glue between native keyboard handling and keyboard interaction with the Inventor scenegraph\&. All components derived from the \fBSoQtRenderArea\fP have got an \fBSoQtKeyboard\fP device attached by default\&. .SH "Member Enumeration Documentation" .PP .SS "enum \fBSoQtKeyboard::Events\fP"Enumeration over supported event types\&. .PP \fBEnumerator: \fP .in +1c .TP \fB\fIKEY_PRESS \fP\fP Maskbit for a keyboard button press event\&. .TP \fB\fIKEY_RELEASE \fP\fP Maskbit for a keyboard button release event\&. .TP \fB\fIALL_EVENTS \fP\fP Combined bitmask for all possible events\&. .SH "Constructor & Destructor Documentation" .PP .SS "\fBSoQtKeyboard::SoQtKeyboard\fP (intmask = \fC\fBALL_EVENTS\fP\fP)"Constructor\&. The \fImask\fP specifies which keyboard-related events to handle\&. Others will just be ignored\&. .SS "\fBSoQtKeyboard::~SoQtKeyboard\fP (void)\fC [virtual]\fP"Destructor\&. .SH "Member Function Documentation" .PP .SS "void \fBSoQtKeyboard::enable\fP (QWidget *widget, SoQtEventHandler *handler, void *closure)\fC [virtual]\fP"This method will enable the device for the widget\&. .PP \fIhandler\fP is invoked with the \fIclosure\fP argument when an event occur in \fIwidget\fP\&. .PP Implements \fBSoQtDevice\fP\&. .SS "void \fBSoQtKeyboard::disable\fP (QWidget *widget, SoQtEventHandler *handler, void *closure)\fC [virtual]\fP"This method will disable the handler for the device\&. .PP Implements \fBSoQtDevice\fP\&. .SS "const SoEvent * \fBSoQtKeyboard::translateEvent\fP (QEvent *event)\fC [virtual]\fP"This method translates from native events to Open Inventor SoEvent events\&. .PP Implements \fBSoQtDevice\fP\&. .PP References SoQtDevice::getLastEventPosition(), KEY_PRESS, KEY_RELEASE, and SoQtDevice::setEventPosition()\&. .SH "Author" .PP Generated automatically by Doxygen for SoQt from the source code\&.