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
qplatformsurface.h
Go to the documentation of this file.
1// Copyright (C) 2017 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 QPLATFORMSURFACE_H
6#define QPLATFORMSURFACE_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
17#include <QtGui/qtguiglobal.h>
18#include <QtCore/qnamespace.h>
19#include <QtGui/qsurface.h>
20#include <QtGui/qsurfaceformat.h>
21
23
24class QPlatformScreen;
25
26#ifndef QT_NO_DEBUG_STREAM
27class QDebug;
28#endif
29
30class Q_GUI_EXPORT QPlatformSurface
31{
32public:
33 Q_DISABLE_COPY_MOVE(QPlatformSurface)
34
35 virtual ~QPlatformSurface();
36 virtual QSurfaceFormat format() const = 0;
37
38 QSurface *surface() const;
39 virtual QPlatformScreen *screen() const = 0;
40
41private:
42 explicit QPlatformSurface(QSurface *surface);
43
44 QSurface *m_surface;
45
46 friend class QPlatformWindow;
47 friend class QPlatformOffscreenSurface;
48};
49
50
51#ifndef QT_NO_DEBUG_STREAM
52Q_GUI_EXPORT QDebug operator<<(QDebug debug, const QPlatformSurface *surface);
53#endif
54
55QT_END_NAMESPACE
56
57#endif //QPLATFORMSURFACE_H
\inmodule QtGui
The QPlatformSurface class provides an abstraction for a surface.
Combined button and popup list for selecting options.
Q_CORE_EXPORT QDebug operator<<(QDebug debug, QDir::Filters filters)
Definition qdir.cpp:2582