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
qplatformoffscreensurface.h
Go to the documentation of this file.
1// Copyright (C) 2020 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 QPLATFORMOFFSCREENSURFACE_H
6#define QPLATFORMOFFSCREENSURFACE_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is part of the QPA API and is not meant to be used
13// in applications. Usage of this API may make your code
14// source and binary incompatible with future versions of Qt.
15//
16
18
19#include <QtGui/qoffscreensurface.h>
20#include <QtCore/qscopedpointer.h>
21
22#include <QtCore/qnativeinterface.h>
23
25
26class QOffscreenSurface;
27class QPlatformScreen;
29
30class Q_GUI_EXPORT QPlatformOffscreenSurface : public QPlatformSurface
31{
32 Q_DECLARE_PRIVATE(QPlatformOffscreenSurface)
33public:
34 explicit QPlatformOffscreenSurface(QOffscreenSurface *offscreenSurface);
35 ~QPlatformOffscreenSurface() override;
36
37 QOffscreenSurface *offscreenSurface() const;
38
39 QPlatformScreen *screen() const override;
40
41 virtual QSurfaceFormat format() const override;
42 virtual bool isValid() const;
43
44protected:
45 QScopedPointer<QPlatformOffscreenSurfacePrivate> d_ptr;
46 friend class QOffscreenSurfacePrivate;
47private:
48 Q_DISABLE_COPY(QPlatformOffscreenSurface)
49};
50
51namespace QNativeInterface::Private {
52
53#if defined(Q_OS_ANDROID)
55{
58};
59#endif
60
61} // QNativeInterface::Private
62
63
64QT_END_NAMESPACE
65
66#endif // QPLATFORMOFFSCREENSURFACE_H
\inmodule QtGui
Combined button and popup list for selecting options.