SoQtKeyboard(3)

πŸ“¦
version 1.6.2 Β· 3 versions
, in opensuse-leap 16.0

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 the SoQtRenderArea have got an SoQtKeyboard device 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