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.h
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#ifndef QCAPTURABLEWINDOW_H
5#define QCAPTURABLEWINDOW_H
6
7#include <QtMultimedia/qtmultimediaglobal.h>
8#include <QtCore/qmetatype.h>
9#include <QtCore/qshareddata.h>
10
12
15
18
20{
21 Q_GADGET_EXPORT(Q_MULTIMEDIA_EXPORT)
23 Q_PROPERTY(bool isValid READ isValid CONSTANT)
24public:
25 Q_MULTIMEDIA_EXPORT QCapturableWindow();
26
27 Q_MULTIMEDIA_EXPORT ~QCapturableWindow();
28
29 Q_MULTIMEDIA_EXPORT QCapturableWindow(const QCapturableWindow &other);
30
32
33 Q_MULTIMEDIA_EXPORT QCapturableWindow& operator=(const QCapturableWindow &other);
34
36
38 { d.swap(other.d); }
39
40 Q_MULTIMEDIA_EXPORT friend bool operator==(const QCapturableWindow &lhs, const QCapturableWindow &rhs) noexcept;
41
42 friend bool operator!=(const QCapturableWindow &lhs, const QCapturableWindow &rhs) noexcept
43 { return !(lhs == rhs); }
44
45 Q_MULTIMEDIA_EXPORT bool isValid() const;
46
47 Q_MULTIMEDIA_EXPORT QString description() const;
48
49#ifndef QT_NO_DEBUG_STREAM
50 Q_MULTIMEDIA_EXPORT friend QDebug operator<<(QDebug, const QCapturableWindow &);
51#endif
52
53private:
54 Q_MULTIMEDIA_EXPORT QCapturableWindow(QCapturableWindowPrivate *capturablePrivate);
56
57 QExplicitlySharedDataPointer<QCapturableWindowPrivate> d;
58};
59
60Q_DECLARE_SHARED(QCapturableWindow)
61
63
65
66#endif // QCAPTURABLEWINDOW_H
\inmodule QtMultimedia
Q_MULTIMEDIA_EXPORT friend QDebug operator<<(QDebug, const QCapturableWindow &)
Q_MULTIMEDIA_EXPORT friend bool operator==(const QCapturableWindow &lhs, const QCapturableWindow &rhs) noexcept
Returns true if window information lhs and rhs refer to the same window, otherwise returns false.
friend bool operator!=(const QCapturableWindow &lhs, const QCapturableWindow &rhs) noexcept
Returns true if window information lhs and rhs refer to different windows, otherwise returns false.
Q_MULTIMEDIA_EXPORT QCapturableWindow()
Constructs a null capturable window information that doesn't refer to any window.
void swap(QCapturableWindow &other) noexcept
Swaps the current window information with other.
QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(QCapturableWindow)
\inmodule QtCore
void swap(QExplicitlySharedDataPointer &other) noexcept
Swap this instance's explicitly shared data pointer with the explicitly shared data pointer in other.
The QMediaCaptureSession class allows capturing of audio and video content.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
#define Q_DECLARE_METATYPE(TYPE)
Definition qmetatype.h:1525
#define QT_DECLARE_QESDP_SPECIALIZATION_DTOR_WITH_EXPORT(Class, ExportMacro)
#define Q_PROPERTY(...)
#define Q_GADGET_EXPORT(...)
QSharedPointer< T > other(t)
[5]