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
qgraphicsframecapture_p_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
4#ifndef QGRAPHICSFRAMECAPTURE_P_P_H
5#define QGRAPHICSFRAMECAPTURE_P_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtCore/qnamespace.h>
19#include <QtCore/qstring.h>
20#include <QtCore/qloggingcategory.h>
21#include <QtCore/qstringlist.h>
22
24
25Q_DECLARE_LOGGING_CATEGORY(lcGraphicsFrameCapture)
26
27class QRhi;
29
31{
32public:
34 virtual ~QGraphicsFrameCapturePrivate() = default;
35
36 virtual void setRhi(QRhi *rhi) = 0;
37 virtual void startCaptureFrame() = 0;
38 virtual void endCaptureFrame() = 0;
39
40 QString capturePath() const { return m_capturePath; };
41 virtual void setCapturePath(const QString &path) { m_capturePath = path; }
42
44 virtual void setCapturePrefix(const QString &prefix) { m_capturePrefix = prefix; }
45
46 virtual QString capturedFileName() const
47 {
48 return !m_capturedFilesNames.isEmpty() ? m_capturedFilesNames.last() : QString();
49 }
51
52 virtual bool initialized() const = 0;
53 virtual bool isCapturing() const = 0;
54 virtual void openCapture() = 0;
55
56protected:
57 QRhi *m_rhi = nullptr;
59 void *m_nativeHandle = nullptr;
63};
64
66
67#endif // QGRAPHICSFRAMECAPTURE_P_P_H
virtual void setRhi(QRhi *rhi)=0
virtual void startCaptureFrame()=0
virtual void endCaptureFrame()=0
virtual QStringList capturedFilesNames() const
virtual void openCapture()=0
virtual void setCapturePrefix(const QString &prefix)
virtual QString capturedFileName() const
virtual bool isCapturing() const =0
virtual void setCapturePath(const QString &path)
virtual bool initialized() const =0
virtual ~QGraphicsFrameCapturePrivate()=default
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
Definition qrhi.h:1804
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
#define Q_DECLARE_LOGGING_CATEGORY(name)
GLsizei const GLchar *const * path
\variable QRhiReadbackResult::completed
Definition qrhi.h:800