Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qwasmwindowclientarea.h
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QWASMWINDOWCLIENTAREA_H
5#define QWASMWINDOWCLIENTAREA_H
6
7#include <QtCore/qnamespace.h>
8#include <qpa/qwindowsysteminterface.h>
9
10#include <emscripten/val.h>
11
12#include <memory>
13
15
16namespace qstdweb {
17class EventCallback;
18}
19
20struct PointerEvent;
21class QWasmScreen;
22class QWasmWindow;
23
25{
26public:
27 ClientArea(QWasmWindow *window, QWasmScreen *screen, emscripten::val element);
28
29private:
30 bool processPointer(const PointerEvent &event);
31 bool deliverEvent(const PointerEvent &event);
32
33 std::unique_ptr<qstdweb::EventCallback> m_pointerDownCallback;
34 std::unique_ptr<qstdweb::EventCallback> m_pointerMoveCallback;
35 std::unique_ptr<qstdweb::EventCallback> m_pointerUpCallback;
36 std::unique_ptr<qstdweb::EventCallback> m_pointerCancelCallback;
37
38 QMap<int, QWindowSystemInterface::TouchPoint> m_pointerIdToTouchPoints;
39
40 QWasmScreen *m_screen;
41 QWasmWindow *m_window;
42 emscripten::val m_element;
43};
44
46#endif // QWASMWINDOWNONCLIENTAREA_H
Definition qmap.h:186
Combined button and popup list for selecting options.
struct _cl_event * event
QScreen * screen
[1]
Definition main.cpp:29
aWidget window() -> setWindowTitle("New Window Title")
[2]