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