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
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
34 static bool releaseRequestUpdateHold();
35
36 void requestUpdate();
39
42
43private:
44 void frame(const QList<QWasmWindow *> &windows);
45
46 void deregisterEventHandlers();
47
48 void deliverUpdateRequests();
49 void deliverUpdateRequest(QWasmWindow *window, UpdateRequestDeliveryType updateType);
50
51 bool m_isEnabled = true;
52 QMap<QWasmWindow *, UpdateRequestDeliveryType> m_requestUpdateWindows;
53 int m_requestAnimationFrameId = -1;
54 bool m_inDeliverUpdateRequest = false;
55 static bool m_requestUpdateHoldEnabled;
56};
57
59
60#endif
\inmodule QtCore
Definition qobject.h:103
void onScreenDeleting()
void onWindowTreeChanged(QWasmWindowTreeNodeChangeType changeType, QWasmWindow *window)
void setVisible(QWasmWindow *window, bool visible)
static bool releaseRequestUpdateHold()
void setEnabled(bool enabled)
void requestUpdateWindow(QWasmWindow *window, UpdateRequestDeliveryType updateType=ExposeEventDelivery)
void handleBackingStoreFlush(QWindow *window)
QWasmScreen * screen()
QWasmCompositor(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]