blob: f867d3df1b4f19b2b1a10e506cea1c3d537f6b51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#ifndef QPLATFORMSURFACE_H
#define QPLATFORMSURFACE_H
//
// W A R N I N G
// -------------
//
// This file is part of the QPA API and is not meant to be used
// in applications. Usage of this API may make your code
// source and binary incompatible with future versions of Qt.
//
#include <QtGui/qtguiglobal.h>
#include <QtCore/qnamespace.h>
#include <QtGui/qsurface.h>
#include <QtGui/qsurfaceformat.h>
QT_BEGIN_NAMESPACE
class QPlatformScreen;
#ifndef QT_NO_DEBUG_STREAM
class QDebug;
#endif
class Q_GUI_EXPORT QPlatformSurface
{
public:
Q_DISABLE_COPY_MOVE(QPlatformSurface)
virtual ~QPlatformSurface();
virtual QSurfaceFormat format() const = 0;
QSurface *surface() const;
virtual QPlatformScreen *screen() const = 0;
static bool isRasterSurface(QSurface *surface);
private:
explicit QPlatformSurface(QSurface *surface);
QSurface *m_surface;
friend class QPlatformWindow;
friend class QPlatformOffscreenSurface;
};
#ifndef QT_NO_DEBUG_STREAM
Q_GUI_EXPORT QDebug operator<<(QDebug debug, const QPlatformSurface *surface);
#endif
QT_END_NAMESPACE
#endif //QPLATFORMSURFACE_H
|