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
qwindowcapture_p.h
Go to the documentation of this file.
1// Copyright (C) 2026 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 QWINDOWCAPTURE_P_H
5#define QWINDOWCAPTURE_P_H
6
7#include <QtCore/private/qobject_p.h>
8
9#include <QtMultimedia/qwindowcapture.h>
10
11#include <memory>
12
13//
14// W A R N I N G
15// -------------
16//
17// This file is not part of the Qt API. It exists purely as an
18// implementation detail. This header file may change from version to
19// version without notice, or even be removed.
20//
21// We mean it.
22//
23
24QT_BEGIN_NAMESPACE
25
26class QMediaCaptureSession;
27class QPlatformSurfaceCapture;
28
29class Q_MULTIMEDIA_EXPORT QWindowCapturePrivate : public QObjectPrivate
30{
31public:
32 [[nodiscard]] static QWindowCapturePrivate *get(QWindowCapture &capture)
33 {
34 return capture.d_func();
35 }
36
37 QMediaCaptureSession *captureSession = nullptr;
38 std::unique_ptr<QPlatformSurfaceCapture> platformWindowCapture;
39
40 // Only applied when next stream starts.
41 void setIgnoreCursor(bool);
42 // Only applied when next stream starts.
43 void setIgnoreDropShadow(bool);
44};
45
46QT_END_NAMESPACE
47
48#endif // QWINDOWCAPTURE_P_H