Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
KeyEvent Struct Reference

#include <qwasmevent.h>

+ Inheritance diagram for KeyEvent:
+ Collaboration diagram for KeyEvent:

Public Member Functions

 KeyEvent (EventType type, emscripten::val webEvent)
 
 ~KeyEvent ()
 
 KeyEvent (const KeyEvent &other)
 
 KeyEvent (KeyEvent &&other)
 
KeyEventoperator= (const KeyEvent &other)
 
KeyEventoperator= (KeyEvent &&other)
 
- Public Member Functions inherited from Event
 Event (EventType type, emscripten::val webEvent)
 
 ~Event ()
 
 Event (const Event &other)
 
 Event (Event &&other)
 
Eventoperator= (const Event &other)
 
Eventoperator= (Event &&other)
 
emscripten::val target () const
 

Static Public Member Functions

static std::optional< KeyEventfromWebWithDeadKeyTranslation (emscripten::val webEvent, QWasmDeadKeySupport *deadKeySupport)
 

Public Attributes

Qt::Key key
 
QFlags< Qt::KeyboardModifiermodifiers
 
bool deadKey
 
QString text
 
- Public Attributes inherited from Event
emscripten::val webEvent
 
EventType type
 

Detailed Description

Definition at line 140 of file qwasmevent.h.

Constructor & Destructor Documentation

◆ KeyEvent() [1/3]

KeyEvent::KeyEvent ( EventType type,
emscripten::val webEvent )

Definition at line 104 of file qwasmevent.cpp.

References QString::clear(), deadKey, QString::fromUtf8(), KeyboardModifier::getForEvent(), Qt::Key_Tab, QString::size(), and text.

Referenced by fromWebWithDeadKeyTranslation().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ~KeyEvent()

KeyEvent::~KeyEvent ( )
default

◆ KeyEvent() [2/3]

KeyEvent::KeyEvent ( const KeyEvent & other)
default

◆ KeyEvent() [3/3]

KeyEvent::KeyEvent ( KeyEvent && other)
default

Member Function Documentation

◆ fromWebWithDeadKeyTranslation()

std::optional< KeyEvent > KeyEvent::fromWebWithDeadKeyTranslation ( emscripten::val webEvent,
QWasmDeadKeySupport * deadKeySupport )
static

Definition at line 131 of file qwasmevent.cpp.

References KeyEvent(), QWasmDeadKeySupport::applyDeadKeyTranslations(), KeyDown, and KeyUp.

Referenced by QWasmWindow::QWasmWindow().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator=() [1/2]

KeyEvent & KeyEvent::operator= ( const KeyEvent & other)
default

◆ operator=() [2/2]

KeyEvent & KeyEvent::operator= ( KeyEvent && other)
default

Member Data Documentation

◆ deadKey

bool KeyEvent::deadKey

Definition at line 154 of file qwasmevent.h.

Referenced by KeyEvent().

◆ key

Qt::Key KeyEvent::key

Definition at line 152 of file qwasmevent.h.

Referenced by operator<<().

◆ modifiers

QFlags<Qt::KeyboardModifier> KeyEvent::modifiers

Definition at line 153 of file qwasmevent.h.

Referenced by operator<<().

◆ text

QString KeyEvent::text

Definition at line 155 of file qwasmevent.h.

Referenced by KeyEvent(), and operator<<().


The documentation for this struct was generated from the following files: