Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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
11QT_BEGIN_NAMESPACE
12
13class QCapturableWindowPrivate;
14QT_DECLARE_QESDP_SPECIALIZATION_DTOR_WITH_EXPORT(QCapturableWindowPrivate, Q_MULTIMEDIA_EXPORT)
15
16class QMediaCaptureSession;
17class QWindow;
19
21{
22 Q_GADGET_EXPORT(Q_MULTIMEDIA_EXPORT)
25public:
27 Q_MULTIMEDIA_EXPORT Q_INVOKABLE Q_REVISION(6, 10) explicit QCapturableWindow(QWindow *window);
28
30
32
33 QCapturableWindow(QCapturableWindow &&other) noexcept = default;
34
36
38
39 void swap(QCapturableWindow &other) noexcept
40 { d.swap(other.d); }
41
42 Q_MULTIMEDIA_EXPORT friend bool operator==(const QCapturableWindow &lhs, const QCapturableWindow &rhs) noexcept;
43
44 friend bool operator!=(const QCapturableWindow &lhs, const QCapturableWindow &rhs) noexcept
45 { return !(lhs == rhs); }
46
47 Q_MULTIMEDIA_EXPORT bool isValid() const;
48
49 Q_MULTIMEDIA_EXPORT QString description() const;
50
51#ifndef QT_NO_DEBUG_STREAM
53#endif
54
55private:
57 friend class QCapturableWindowPrivate;
58
59 QExplicitlySharedDataPointer<QCapturableWindowPrivate> d;
60};
61
62Q_DECLARE_SHARED(QCapturableWindow)
63
64QT_END_NAMESPACE
65
66Q_DECLARE_METATYPE(QCapturableWindow)
67
68#endif // QCAPTURABLEWINDOW_H
\inmodule QtMultimedia
Q_MULTIMEDIA_EXPORT ~QCapturableWindow()
Destroys the window information.
QCapturableWindow(QCapturableWindow &&other) noexcept=default
\qmlvaluetype CapturableWindow \nativetype QCapturableWindow
void swap(QCapturableWindow &other) noexcept
Swaps the current window information with other.
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 bool isValid() const
QDebug operator<<(QDebug dbg, const QCapturableWindow &window)
bool operator==(const QCapturableWindow &lhs, const QCapturableWindow &rhs) noexcept