.TH "SoQtKeyboard" 3 "Fri Dec 29 2017" "Version 1.6.0a" "SoQt" \" -*- nroff -*- .ad l .nh .SH NAME SoQtKeyboard \- 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 .SS "Additional Inherited Members" .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 "SoQtKeyboard::SoQtKeyboard (int mask = \fC\fBALL_EVENTS\fP\fP)" Constructor\&. The \fImask\fP specifies which keyboard-related events to handle\&. Others will just be ignored\&. .SS "SoQtKeyboard::~SoQtKeyboard (void)\fC [virtual]\fP" Destructor\&. .SH "Member Function Documentation" .PP .SS "void SoQtKeyboard::enable (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 SoQtKeyboard::disable (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 * SoQtKeyboard::translateEvent (QEvent * event)\fC [virtual]\fP" This method translates from native events to Open Inventor SoEvent events\&. .PP Implements \fBSoQtDevice\fP\&. .PP References SoQtDevice::getLastEventPosition()\&. .SH "Author" .PP Generated automatically by Doxygen for SoQt from the source code\&.