Qt
6.x
The Qt SDK
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Related Symbols
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
20
QT_BEGIN_NAMESPACE
21
22
class
QBackingStore
;
23
24
class
QSGSoftwareRenderLoop
:
public
QSGRenderLoop
25
{
26
Q_OBJECT
27
public
:
28
QSGSoftwareRenderLoop
();
29
~QSGSoftwareRenderLoop
();
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
46
QSurface::SurfaceType
windowSurfaceType
()
const override
;
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
61
QSGContext
*
sg
;
62
QSGRenderContext
*
rc
;
63
64
QImage
grabContent
;
65
};
66
67
QT_END_NAMESPACE
68
69
#endif
// QSGSOFTWARERENDERLOOP_H
QAnimationDriver
\inmodule QtCore
Definition
qabstractanimation.h:107
QBackingStore
The QBackingStore class provides a drawing area for QWindow.
Definition
qbackingstore.h:24
QHash
\inmodule QtCore
Definition
qhash.h:818
QImage
\inmodule QtGui
Definition
qimage.h:37
QQuickWindow
\qmltype Window \instantiates QQuickWindow \inqmlmodule QtQuick
Definition
qquickwindow.h:41
QSGContext
The QSGContext holds the scene graph entry points for one QML engine.
Definition
qsgcontext_p.h:74
QSGRenderContext
Definition
qsgcontext_p.h:124
QSGRenderLoop
Definition
qsgrenderloop_p.h:34
QSGSoftwareRenderLoop
Definition
qsgsoftwarerenderloop_p.h:25
QSGSoftwareRenderLoop::update
void update(QQuickWindow *window) override
Definition
qsgsoftwarerenderloop_p.h:41
QSGSoftwareRenderLoop::~QSGSoftwareRenderLoop
~QSGSoftwareRenderLoop()
Definition
qsgsoftwarerenderloop.cpp:30
QSGSoftwareRenderLoop::createRenderContext
QSGRenderContext * createRenderContext(QSGContext *) const override
Definition
qsgsoftwarerenderloop_p.h:51
QSGSoftwareRenderLoop::m_backingStores
QHash< QQuickWindow *, QBackingStore * > m_backingStores
Definition
qsgsoftwarerenderloop_p.h:59
QSGSoftwareRenderLoop::grab
QImage grab(QQuickWindow *window) override
Definition
qsgsoftwarerenderloop.cpp:200
QSGSoftwareRenderLoop::exposureChanged
void exposureChanged(QQuickWindow *window) override
Definition
qsgsoftwarerenderloop.cpp:192
QSGSoftwareRenderLoop::QSGSoftwareRenderLoop
QSGSoftwareRenderLoop()
Definition
qsgsoftwarerenderloop.cpp:24
QSGSoftwareRenderLoop::sg
QSGContext * sg
Definition
qsgsoftwarerenderloop_p.h:61
QSGSoftwareRenderLoop::m_windows
QHash< QQuickWindow *, WindowData > m_windows
Definition
qsgsoftwarerenderloop_p.h:58
QSGSoftwareRenderLoop::animationDriver
QAnimationDriver * animationDriver() const override
Definition
qsgsoftwarerenderloop_p.h:48
QSGSoftwareRenderLoop::maybeUpdate
void maybeUpdate(QQuickWindow *window) override
Definition
qsgsoftwarerenderloop.cpp:228
QSGSoftwareRenderLoop::rc
QSGRenderContext * rc
Definition
qsgsoftwarerenderloop_p.h:62
QSGSoftwareRenderLoop::sceneGraphContext
QSGContext * sceneGraphContext() const override
Definition
qsgsoftwarerenderloop.cpp:244
QSGSoftwareRenderLoop::handleUpdateRequest
void handleUpdateRequest(QQuickWindow *) override
Definition
qsgsoftwarerenderloop.cpp:250
QSGSoftwareRenderLoop::releaseResources
void releaseResources(QQuickWindow *) override
Definition
qsgsoftwarerenderloop_p.h:44
QSGSoftwareRenderLoop::windowDestroyed
void windowDestroyed(QQuickWindow *window) override
Definition
qsgsoftwarerenderloop.cpp:56
QSGSoftwareRenderLoop::windowSurfaceType
QSurface::SurfaceType windowSurfaceType() const override
Definition
qsgsoftwarerenderloop.cpp:237
QSGSoftwareRenderLoop::renderWindow
void renderWindow(QQuickWindow *window, bool isNewExpose=false)
Definition
qsgsoftwarerenderloop.cpp:73
QSGSoftwareRenderLoop::grabContent
QImage grabContent
Definition
qsgsoftwarerenderloop_p.h:64
QSurface::SurfaceType
SurfaceType
The SurfaceType enum describes what type of surface this is.
Definition
qsurface.h:30
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1545
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:117
show
view show()
[18] //! [19]
hide
edit hide()
window
aWidget window() -> setWindowTitle("New Window Title")
[2]
QSGSoftwareRenderLoop::WindowData
Definition
qsgsoftwarerenderloop_p.h:53
QSGSoftwareRenderLoop::WindowData::grabOnly
bool grabOnly
Definition
qsgsoftwarerenderloop_p.h:55
QSGSoftwareRenderLoop::WindowData::updatePending
bool updatePending
Definition
qsgsoftwarerenderloop_p.h:54
qtdeclarative
src
quick
scenegraph
adaptations
software
qsgsoftwarerenderloop_p.h
Generated by
1.9.7