Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qwasmcompositor.h
Go to the documentation of this file.
1// Copyright (C) 2018 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QWASMCOMPOSITOR_H
5#define QWASMCOMPOSITOR_H
6
7#include "qwasmwindowstack.h"
8
9#include <qpa/qplatformwindow.h>
10
11#include <QMap>
12
14
15class QWasmWindow;
16class QWasmScreen;
17
19
20class QWasmCompositor final : public QObject
21{
23public:
25 ~QWasmCompositor() final;
26
27 void setVisible(QWasmWindow *window, bool visible);
28
30
32 void setEnabled(bool enabled);
33
35
37
40
41private:
42 void frame(const QList<QWasmWindow *> &windows);
43
44 void deregisterEventHandlers();
45
46 void requestUpdate();
47 void deliverUpdateRequests();
48 void deliverUpdateRequest(QWasmWindow *window, UpdateRequestDeliveryType updateType);
49
50 bool m_isEnabled = true;
52 int m_requestAnimationFrameId = -1;
53 bool m_inDeliverUpdateRequest = false;
54};
55
57
58#endif
Definition qlist.h:74
Definition qmap.h:186
\inmodule QtCore
Definition qobject.h:90
void onScreenDeleting()
void onWindowTreeChanged(QWasmWindowTreeNodeChangeType changeType, QWasmWindow *window)
void setVisible(QWasmWindow *window, bool visible)
void setEnabled(bool enabled)
void requestUpdateWindow(QWasmWindow *window, UpdateRequestDeliveryType updateType=ExposeEventDelivery)
void handleBackingStoreFlush(QWindow *window)
QWasmScreen * screen()
\inmodule QtGui
Definition qwindow.h:63
Combined button and popup list for selecting options.
GLenum GLenum GLsizei const GLuint GLboolean enabled
#define Q_OBJECT
QWasmWindowTreeNodeChangeType
aWidget window() -> setWindowTitle("New Window Title")
[2]
QFrame frame
[0]