10QT_DEFINE_QESDP_SPECIALIZATION_DTOR(QCapturableWindowPrivate)
13
14
15
16
17
18
19
20
21
22
23
24
25
26
28
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
59
60
61
62
65
66
67
68
71
72
73
74
77
78
79QCapturableWindow::QCapturableWindow() =
default;
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
100 q23::expected<QCapturableWindow, QString> capturableWindow =
101 QPlatformMediaIntegration::instance()->capturableWindowFromQWindow(window);
102 if (capturableWindow)
103 *
this = std::move(capturableWindow.value());
107
108
112
113
117
118
122
123
124
125
126
129
130
131
132
133
136 return lhs.d == rhs.d || (lhs.d && rhs.d && lhs.d->id == rhs.d->id);
140
141
142
143
144
145
148
149
150
151
152
155 return d && QPlatformMediaIntegration::instance()->isCapturableWindowValid(*d);
159
160
161
162
163
166
167
168
169
170
176 if (d->description.isEmpty() && d->id)
177 return QLatin1String(
"Window 0x") + QString::number(d->id, 16);
179 return d->description;
183 : d(capturablePrivate)
187#ifndef QT_NO_DEBUG_STREAM
190 dbg << QStringLiteral(
"Capturable window '%1'").arg(window.description());
198#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