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
qwaylandclientbufferintegration_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 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 QWAYLANDCLIENTBUFFERINTEGRATION_H
5#define QWAYLANDCLIENTBUFFERINTEGRATION_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtCore/private/qglobal_p.h>
19#include <QtWaylandClient/qtwaylandclientglobal.h>
20#if QT_CONFIG(opengl)
21#include <QtGui/private/qeglplatformcontext_p.h>
22#endif
23
24QT_BEGIN_NAMESPACE
25
26class QWindow;
27#if QT_CONFIG(opengl)
28class QOpenGLContext;
29class QPlatformOpenGLContext;
30#endif
31class QPlatformOffscreenSurface;
32class QSurfaceFormat;
33class QOffscreenSurface;
34
35namespace QtWaylandClient {
36
37class QWaylandWindow;
38class QWaylandDisplay;
39
40class Q_WAYLANDCLIENT_EXPORT QWaylandClientBufferIntegration
41{
42public:
45
47
48 virtual bool isValid() const { return true; }
49
50 virtual bool supportsThreadedOpenGL() const { return false; }
51 virtual bool supportsWindowDecoration() const { return false; }
52
55#if QT_CONFIG(opengl)
58#endif
59
65 virtual void *nativeResource(NativeResource /*resource*/) { return nullptr; }
66 virtual void *nativeResourceForContext(NativeResource /*resource*/, QPlatformOpenGLContext */*context*/) { return nullptr; }
67};
68
69}
70
71QT_END_NAMESPACE
72
73#endif // QWAYLANDCLIENTBUFFERINTEGRATION_H