6#include <QtMultimedia/private/qcapturablewindow_p.h>
7#include <QtMultimedia/private/qplatformmediaintegration_p.h>
11QT_DEFINE_QESDP_SPECIALIZATION_DTOR(QCapturableWindowPrivate)
14
15
16
17
18
19
20
21
22
23
24
25
26
27
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
60
61
62
63
66
67
68
69
72
73
74
75
78
79
80QCapturableWindow::QCapturableWindow() =
default;
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
101 q23::expected<QCapturableWindow, QString> capturableWindow =
102 QPlatformMediaIntegration::instance()->capturableWindowFromQWindow(window);
103 if (capturableWindow)
104 *
this = std::move(capturableWindow.value());
108
109
113
114
118
119
123
124
125
126
127
130
131
132
133
134
137 return lhs.d == rhs.d || (lhs.d && rhs.d && lhs.d->id == rhs.d->id);
141
142
143
144
145
146
149
150
151
152
153
156 return d && QPlatformMediaIntegration::instance()->isCapturableWindowValid(*d);
160
161
162
163
164
167
168
169
170
171
177 if (d->description.isEmpty() && d->id)
178 return QLatin1String(
"Window 0x") + QString::number(d->id, 16);
180 return d->description;
184 : d(capturablePrivate)
188#ifndef QT_NO_DEBUG_STREAM
191 dbg << QStringLiteral(
"Capturable window '%1'").arg(window.description());
199#include "moc_qcapturablewindow.cpp"
Q_MULTIMEDIA_EXPORT ~QCapturableWindow()
Destroys the window information.
Q_MULTIMEDIA_EXPORT bool isValid() const
QDebug operator<<(QDebug dbg, const QCapturableWindow &window)
bool operator==(const QCapturableWindow &lhs, const QCapturableWindow &rhs) noexcept