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
qgraphicsframecapture_p.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// Qt-Security score:significant reason:default
4
5#ifndef QGRAPHICSFRAMECAPTURE_P_H
6#define QGRAPHICSFRAMECAPTURE_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtCore/qscopedpointer.h>
20#include <QtGui/qtguiglobal.h>
21
22QT_BEGIN_NAMESPACE
23
24class QGraphicsFrameCapturePrivate;
25class QRhi;
26
27class Q_GUI_EXPORT QGraphicsFrameCapture
28{
29public:
30 QGraphicsFrameCapture();
31 ~QGraphicsFrameCapture();
32
33 void setRhi(QRhi *rhi);
34 void startCaptureFrame();
35 void endCaptureFrame();
36
37 QString capturePath() const;
38 void setCapturePath(const QString &path);
39
40 QString capturePrefix() const;
41 void setCapturePrefix(const QString &prefix);
42
43 QString capturedFileName();
44 QStringList capturedFilesNames();
45
46 bool isLoaded() const;
47 bool isCapturing() const;
48 void openCapture() const;
49
50private:
51 QScopedPointer<QGraphicsFrameCapturePrivate> d;
52};
53
54QT_END_NAMESPACE
55
56#endif // QGRAPHICSFRAMECAPTURE_P_H