SoQtKeyboard(3)
Hiii bestie π you're reading the SoQtKeyboard(3) page from the SoQt manual β and it's literally the keyboard input device abstraction. Buckle up, it's giving "glue between native keyboard handling and Inventor" energy.
πΈ NAME πΈ
SoQtKeyboard β the keyboard input device abstraction. Periodt.
β¨ 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)
virtual ~SoQtKeyboard (void)
virtual void enable (QWidget *widget, SoQtEventHandler *handler, void
*closure)
virtual void disable (QWidget *widget, SoQtEventHandler *handler, void
*closure)
virtual const SoEvent * translateEvent (QEvent *event)
π¦ Public Member Functions inherited from SoQtDevice π¦
virtual ~SoQtDevice ()
void setWindowSize (const SbVec2s size)
SbVec2s getWindowSize (void) const
π Public Member Functions inherited from SoQtObject π
virtual SoType getTypeId (void) const =0
SbBool isOfType (SoType type) const
π Additional Inherited Members π
β Static Public Member Functions inherited from SoQtDevice β
static void initClasses (void)
π Static Public Member Functions inherited from SoQtObject π
static void initClass (void)
static SoType getClassTypeId (void)
static void init (void)
πΈ Protected Member Functions inherited from SoQtDevice πΈ
SoQtDevice (void)
void setEventPosition (SoEvent *event, int x, int y) const
void addEventHandler (QWidget *, SoQtEventHandler *, void *)
void removeEventHandler (QWidget *, SoQtEventHandler *, void *)
void invokeHandlers (QEvent *event)
π§ Static Protected Member Functions inherited from SoQtDevice π§
static SbVec2s getLastEventPosition (void)
π Detailed Description π
Okay so the SoQtKeyboard class is the keyboard input device abstraction. Slay.
It's the glue between native keyboard handling and keyboard interaction with the Inventor scene graph. iykyk.
All components derived from theSoQtRenderAreahave got anSoQtKeyboarddevice attached by default. Cute, right? β¨
π₯ Member Enumeration Documentation π₯
enum SoQtKeyboard::Events
Enumeration over supported event types. vibe check:
KEY_PRESSβ Maskbit for a keyboard button press event. press it.KEY_RELEASEβ Maskbit for a keyboard button release event. release it.ALL_EVENTSβ Combined bitmask for all possible events. the whole package.
π Constructor & Destructor Documentation π
SoQtKeyboard::SoQtKeyboard (int mask = ALL_EVENTS)
Constructor, bestie. The mask specifies which keyboard-related events to handle. Others will just be ignored. no cap.
SoQtKeyboard::~SoQtKeyboard (void ) [virtual]
Destructor. Say bye π
π«Ά 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. iconic.
void SoQtKeyboard::disable (QWidget * widget, SoQtEventHandler * handler, void * closure) [virtual]
This method will disable the handler for the device. Implements SoQtDevice. okay goodbye handler.
const SoEvent * SoQtKeyboard::translateEvent (QEvent * event) [virtual]
This method translates from native events to Open Inventor SoEvent events. Implements SoQtDevice. translator era.
π Author π
Generated automatically by Doxygen for SoQt from the source code. not me being auto-generated π
Bye bestie π«Ά β that's the whole SoQtKeyboard(3) page, from SoQt version 1.6.2, dated Sat Jan 6 2024 12:20:55. Stay slay π
β¨
π¦ where this page comes from
- opensuse-leap 16.0: SoQt-devel 1.6.2-bp160.1.13 Β· BSD-3-Clause
- opensuse-leap 16.0: SoQt-devel 1.6.2-bp160.1.13 Β· BSD-3-Clause
- opensuse-leap 16.0: SoQt-devel 1.6.2-bp160.1.13 Β· BSD-3-Clause
- opensuse-leap 16.0: SoQt-devel 1.6.2-bp160.1.13 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms