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
qcapturablewindow.cpp
Go to the documentation of this file.
1// Copyright (C) 2023 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#include "qcapturablewindow.h"
7
9
11
12
66
71
76
81
95bool operator==(const QCapturableWindow &lhs, const QCapturableWindow &rhs) noexcept
96{
97 return lhs.d == rhs.d || (lhs.d && rhs.d && lhs.d->id == rhs.d->id);
98}
99
116{
117 return d && QPlatformMediaIntegration::instance()->isCapturableWindowValid(*d);
118}
119
130{
131 if (!d)
132 return {};
133
134 if (d->description.isEmpty() && d->id)
135 return QLatin1String("Window 0x") + QString::number(d->id, 16);
136
137 return d->description;
138}
139
141 : d(capturablePrivate)
142{
143}
144
145#ifndef QT_NO_DEBUG_STREAM
147{
148 dbg << QStringLiteral("Capturable window '%1'").arg(window.description());
149 return dbg;
150}
151#endif
152
153
155
156#include "moc_qcapturablewindow.cpp"
\inmodule QtMultimedia
Q_MULTIMEDIA_EXPORT ~QCapturableWindow()
Destroys the window information.
Q_MULTIMEDIA_EXPORT QCapturableWindow()
Constructs a null capturable window information that doesn't refer to any window.
Q_MULTIMEDIA_EXPORT QCapturableWindow & operator=(const QCapturableWindow &other)
Moves other into this QCapturableWindow.
\inmodule QtCore
static QPlatformMediaIntegration * instance()
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
bool isEmpty() const noexcept
Returns true if the string has no characters; otherwise returns false.
Definition qstring.h:192
static QString number(int, int base=10)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition qstring.cpp:8084
Combined button and popup list for selecting options.
QDebug operator<<(QDebug dbg, const QCapturableWindow &window)
bool operator==(const QCapturableWindow &lhs, const QCapturableWindow &rhs) noexcept
#define QT_DEFINE_QESDP_SPECIALIZATION_DTOR(Class)
QLatin1StringView QLatin1String
Definition qstringfwd.h:31
#define QStringLiteral(str)
QSharedPointer< T > other(t)
[5]
aWidget window() -> setWindowTitle("New Window Title")
[2]