Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
// Qt-Security score:significant reason:default
4
5
#
ifndef
QQUICKRENDERCONTROL_P_H
6
#
define
QQUICKRENDERCONTROL_P_H
7
8
//
9
// W A R N I N G
10
// -------------
11
//
12
// This file is not part of the Qt API. It exists purely as an
13
// implementation detail. This header file may change from version to
14
// version without notice, or even be removed.
15
//
16
// We mean it.
17
//
18
19
#
include
"qquickrendercontrol.h"
20
#
include
<
QtQuick
/
private
/
qsgcontext_p
.
h
>
21
22
QT_BEGIN_NAMESPACE
23
24
class
QRhi;
25
class
QRhiCommandBuffer;
26
class
QOffscreenSurface;
27
class
QQuickGraphicsConfiguration;
28
29
class
Q_QUICK_EXPORT
QQuickRenderControlPrivate
:
public
QObjectPrivate
30
{
31
public
:
32
Q_DECLARE_PUBLIC(QQuickRenderControl)
33
34
enum
FrameStatus {
35
NotRecordingFrame,
36
RecordingFrame,
37
DeviceLostInBeginFrame,
38
ErrorInBeginFrame
39
};
40
41
QQuickRenderControlPrivate(QQuickRenderControl *renderControl);
42
43
static
QQuickRenderControlPrivate *get(QQuickRenderControl *renderControl) {
44
return
renderControl->d_func();
45
}
46
47
static
bool
isRenderWindowFor(QQuickWindow *quickWin,
const
QWindow *renderWin);
48
static
bool
isFocusWindowFor(QQuickWindow *quickWindow,
const
QWindow *focusWindow);
49
virtual
bool
isRenderWindow(
const
QWindow *w);
50
51
static
void
cleanup();
52
53
void
windowDestroyed();
54
55
void
update();
56
void
maybeUpdate();
57
58
bool
initRhi();
59
void
resetRhi(
const
QQuickGraphicsConfiguration &config);
60
61
QImage grab();
62
63
QQuickRenderControl *q;
64
bool
initialized;
65
QQuickWindow *window;
66
static
QSGContext *sg;
67
QSGRenderContext *rc;
68
QRhi *rhi;
69
bool
ownRhi;
70
QRhiCommandBuffer *cb;
71
QOffscreenSurface *offscreenSurface;
72
int
sampleCount;
73
FrameStatus frameStatus;
74
};
75
76
QT_END_NAMESPACE
77
78
#
endif
// QQUICKRENDERCONTROL_P_H
QQuickRenderControlPrivate
Definition
qquickrendercontrol_p.h:30
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtdeclarative
src
quick
items
qquickrendercontrol_p.h
Generated on
for Qt by
1.18.0