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
qwlserverbufferintegration_p.h
Go to the documentation of this file.
1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QWAYLANDSERVERBUFFERINTEGRATION_H
6#define QWAYLANDSERVERBUFFERINTEGRATION_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtCore/private/qglobal_p.h>
20#include <QtCore/QSize>
21#include <QtGui/qopengl.h>
22
23#include <QtWaylandCompositor/qtwaylandcompositorglobal.h>
24
25struct wl_client;
26struct wl_resource;
27
28QT_BEGIN_NAMESPACE
29
30class QWaylandCompositor;
31class QOpenGLContext;
32class QOpenGLTexture;
33class QImage;
34
35namespace QtWayland {
36class Display;
37
38class Q_WAYLANDCOMPOSITOR_EXPORT ServerBuffer
39{
40public:
46
48 virtual ~ServerBuffer();
49
50 virtual struct ::wl_resource *resourceForClient(struct ::wl_client *) = 0;
51 virtual bool bufferInUse() { return true; }
52
54 virtual void releaseOpenGlTexture() {}
55
56 virtual bool isYInverted() const;
57
58 QSize size() const;
59 Format format() const;
60protected:
63};
64
65class Q_WAYLANDCOMPOSITOR_EXPORT ServerBufferIntegration
66{
67public:
69 virtual ~ServerBufferIntegration();
70
72
73 virtual bool supportsFormat(ServerBuffer::Format format) const = 0;
83};
84
85}
86
87QT_END_NAMESPACE
88
89#endif //QWAYLANDSERVERBUFFERINTEGRATION_H
\inmodule QtSql
void handleKeyEvent(QWindowSystemInterfacePrivate::KeyEvent *ke)
bool sendEvent(QWindowSystemInterfacePrivate::WindowSystemEvent *e) override
WindowSystemEventHandler(QWaylandCompositor *c)
QtWayland::ClientBuffer * createBufferFor(wl_resource *buffer) override
void initializeHardware(wl_display *display) override
Combined button and popup list for selecting options.
#define Q_PUBLIC_LOGGING_CATEGORY(name,...)
const QLoggingCategory & qLcWaylandCompositorTextInput()
const QLoggingCategory & qLcWaylandCompositorInputMethods()