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
qquickrendercontrol_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 QQUICKRENDERCONTROL_P_H
5#define QQUICKRENDERCONTROL_P_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 "qquickrendercontrol.h"
19#include <QtQuick/private/qsgcontext_p.h>
20
22
23class QRhi;
27
28class Q_QUICK_EXPORT QQuickRenderControlPrivate : public QObjectPrivate
29{
30public:
31 Q_DECLARE_PUBLIC(QQuickRenderControl)
32
39
41
43 return renderControl->d_func();
44 }
45
46 static bool isRenderWindowFor(QQuickWindow *quickWin, const QWindow *renderWin);
47 virtual bool isRenderWindow(const QWindow *w);
48
49 static void cleanup();
50
51 void windowDestroyed();
52
53 void update();
54 void maybeUpdate();
55
56 bool initRhi();
57 void resetRhi(const QQuickGraphicsConfiguration &config);
58
59 QImage grab();
60
64 static QSGContext *sg;
67 bool ownRhi;
72};
73
75
76#endif // QQUICKRENDERCONTROL_P_H
\inmodule QtGui
Definition qimage.h:37
\inmodule QtGui
QQuickGraphicsConfiguration controls lower level graphics settings for the QQuickWindow.
QOffscreenSurface * offscreenSurface
static QQuickRenderControlPrivate * get(QQuickRenderControl *renderControl)
The QQuickRenderControl class provides a mechanism for rendering the Qt Quick scenegraph onto an offs...
\qmltype Window \instantiates QQuickWindow \inqmlmodule QtQuick
\inmodule QtGui
Definition qrhi.h:1651
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
Definition qrhi.h:1804
The QSGContext holds the scene graph entry points for one QML engine.
\inmodule QtGui
Definition qwindow.h:63
Combined button and popup list for selecting options.
EGLConfig config
GLfloat GLfloat GLfloat w
[0]