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
qsgsoftwarerenderloop_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QSGSOFTWARERENDERLOOP_H
5#define QSGSOFTWARERENDERLOOP_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <private/qsgrenderloop_p.h>
19
21
22class QBackingStore;
23
25{
27public:
30
31 void show(QQuickWindow *window) override;
32 void hide(QQuickWindow *window) override;
33
34 void windowDestroyed(QQuickWindow *window) override;
35
36 void renderWindow(QQuickWindow *window, bool isNewExpose = false);
37 void exposureChanged(QQuickWindow *window) override;
38 QImage grab(QQuickWindow *window) override;
39
40 void maybeUpdate(QQuickWindow *window) override;
41 void update(QQuickWindow *window) override { maybeUpdate(window); } // identical for this implementation.
42 void handleUpdateRequest(QQuickWindow *) override;
43
44 void releaseResources(QQuickWindow *) override { }
45
47
48 QAnimationDriver *animationDriver() const override { return 0; }
49
50 QSGContext *sceneGraphContext() const override;
51 QSGRenderContext *createRenderContext(QSGContext *) const override { return rc; }
52
53 struct WindowData {
54 bool updatePending : 1;
55 bool grabOnly : 1;
56 };
57
58 QHash<QQuickWindow *, WindowData> m_windows;
59 QHash<QQuickWindow *, QBackingStore *> m_backingStores;
60
63
65};
66
68
69#endif // QSGSOFTWARERENDERLOOP_H
\inmodule QtCore
The QBackingStore class provides a drawing area for QWindow.
\inmodule QtGui
Definition qimage.h:37
\qmltype Window \instantiates QQuickWindow \inqmlmodule QtQuick
The QSGContext holds the scene graph entry points for one QML engine.
void update(QQuickWindow *window) override
QSGRenderContext * createRenderContext(QSGContext *) const override
QHash< QQuickWindow *, QBackingStore * > m_backingStores
QImage grab(QQuickWindow *window) override
void exposureChanged(QQuickWindow *window) override
QHash< QQuickWindow *, WindowData > m_windows
QAnimationDriver * animationDriver() const override
void maybeUpdate(QQuickWindow *window) override
QSGContext * sceneGraphContext() const override
void handleUpdateRequest(QQuickWindow *) override
void releaseResources(QQuickWindow *) override
void windowDestroyed(QQuickWindow *window) override
QSurface::SurfaceType windowSurfaceType() const override
void renderWindow(QQuickWindow *window, bool isNewExpose=false)
SurfaceType
The SurfaceType enum describes what type of surface this is.
Definition qsurface.h:30
Combined button and popup list for selecting options.
#define Q_OBJECT
view show()
[18] //! [19]
edit hide()
aWidget window() -> setWindowTitle("New Window Title")
[2]