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
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
4#ifndef QPLATFORMOFFSCREENSURFACE_H
5#define QPLATFORMOFFSCREENSURFACE_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is part of the QPA API and is not meant to be used
12// in applications. Usage of this API may make your code
13// source and binary incompatible with future versions of Qt.
14//
15
16#include "qplatformsurface.h"
17
18#include <QtGui/qoffscreensurface.h>
19#include <QtCore/qscopedpointer.h>
20
21#include <QtCore/qnativeinterface.h>
22
24
26class QPlatformScreen;
28
30{
31 Q_DECLARE_PRIVATE(QPlatformOffscreenSurface)
32public:
33 explicit QPlatformOffscreenSurface(QOffscreenSurface *offscreenSurface);
35
36 QOffscreenSurface *offscreenSurface() const;
37
38 QPlatformScreen *screen() const override;
39
40 virtual QSurfaceFormat format() const override;
41 virtual bool isValid() const;
42
43protected:
44 QScopedPointer<QPlatformOffscreenSurfacePrivate> d_ptr;
46private:
47 Q_DISABLE_COPY(QPlatformOffscreenSurface)
48};
49
51
52#if defined(Q_OS_ANDROID)
53struct Q_GUI_EXPORT QAndroidOffScreenIntegration
54{
55 QT_DECLARE_NATIVE_INTERFACE(QAndroidOffScreenIntegration)
56 virtual QOffscreenSurface *createOffscreenSurface(ANativeWindow *nativeSurface) const = 0;
57};
58#endif
59
60} // QNativeInterface::Private
61
62
64
65#endif // QPLATFORMOFFSCREENSURFACE_H
\inmodule QtGui
QScopedPointer< QPlatformOffscreenSurfacePrivate > d_ptr
The QPlatformScreen class provides an abstraction for visual displays.
The QPlatformSurface class provides an abstraction for a surface.
The QSurfaceFormat class represents the format of a QSurface. \inmodule QtGui.
Combined button and popup list for selecting options.
#define QT_DECLARE_NATIVE_INTERFACE(...)
GLint GLsizei GLsizei GLenum format
QScreen * screen
[1]
Definition main.cpp:29