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
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
40 static bool isRasterSurface(QSurface *surface);
41
42private:
43 explicit QPlatformSurface(QSurface *surface);
44
45 QSurface *m_surface;
46
47 friend class QPlatformWindow;
49};
50
51
52#ifndef QT_NO_DEBUG_STREAM
54#endif
55
57
58#endif //QPLATFORMSURFACE_H
\inmodule QtCore
The QPlatformScreen class provides an abstraction for visual displays.
The QPlatformSurface class provides an abstraction for a surface.
virtual QPlatformScreen * screen() const =0
QSurface * surface() const
virtual QSurfaceFormat format() const =0
The QPlatformWindow class provides an abstraction for top-level windows.
The QSurfaceFormat class represents the format of a QSurface. \inmodule QtGui.
\inmodule QtGui
Definition qsurface.h:21
Combined button and popup list for selecting options.
Q_GUI_EXPORT QDebug operator<<(QDebug debug, const QPlatformSurface *surface)