Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qwasmkeytranslator.h
Go to the documentation of this file.
1// Copyright (C) 2023 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QWASMKEYTRANSLATOR_H
6#define QWASMKEYTRANSLATOR_H
7
8#include <QtCore/qnamespace.h>
9#include <QtCore/qtypes.h>
10
11#include <optional>
12
13QT_BEGIN_NAMESPACE
14
15struct KeyEvent;
16
18std::optional<Qt::Key> mapWebKeyTextToQtKey(const char *toFind);
19}
20
21QT_END_NAMESPACE
22#endif // QWASMKEYTRANSLATOR_H
Combined button and popup list for selecting options.
QFlags< Qt::KeyboardModifier > getKeyboardModifiers(const emscripten::val &event)
constexpr std::string_view WebDeadKeyValue
bool isDeadKeyEvent(const char *key)
Qt::Key webKeyToQtKey(const std::string &code, const std::string &key, bool isDeadKey, QFlags< Qt::KeyboardModifier > modifiers)
Qt::Key getKeyFromCode(const std::string &code)
std::optional< Qt::Key > mapWebKeyTextToQtKey(const char *toFind)
DeltaMode
Definition qwasmevent.h:53
PointerType
Definition qwasmevent.h:41
EventType
Definition qwasmevent.h:23
DragEvent(EventType type, emscripten::val webEvent, QWindow *targetQWindow)
void acceptDrop()
void acceptDragOver()
void cancelDragStart()
QWindow * targetWindow
Definition qwasmevent.h:152
bool isTargetedForElement(emscripten::val element) const
Event(EventType type, emscripten::val webEvent)
EventType type
Definition qwasmevent.h:62
bool deadKey
Definition qwasmevent.h:72
bool autoRepeat
Definition qwasmevent.h:74
int keyCode
Definition qwasmevent.h:76
KeyEvent(EventType type, emscripten::val webEvent)
bool isComposing
Definition qwasmevent.h:75
MouseEvent(EventType type, emscripten::val webEvent)
PointerType pointerType
Definition qwasmevent.h:130
PointerEvent(EventType type, emscripten::val webEvent)
DeltaMode deltaMode
Definition qwasmevent.h:159
WheelEvent(EventType type, emscripten::val webEvent)
bool webkitDirectionInvertedFromDevice
Definition qwasmevent.h:160