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
qwlbuffermanager_p.h
Go to the documentation of this file.
1// Copyright (C) 2017 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QWLBUFFERMANAGER_H
5#define QWLBUFFERMANAGER_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/QObject>
19#include <QtCore/QHash>
20#include "qwlclientbuffer_p.h"
22
24
25namespace QtWayland {
26
27class ClientBuffer;
28
29class Q_WAYLANDCOMPOSITOR_EXPORT BufferManager : public QObject
30{
31public:
33 ClientBuffer *getBuffer(struct ::wl_resource *buffer_resource);
34 void registerBuffer(struct ::wl_resource *buffer_resource, ClientBuffer *clientBuffer);
35private:
37 static void destroy_listener_callback(wl_listener *listener, void *data);
38
39 QHash<struct ::wl_resource *, ClientBuffer*> m_buffers;
40 QWaylandCompositor *m_compositor = nullptr;
41};
42
43}
45
46#endif // QWLBUFFERMANAGER_H
\inmodule QtCore
Definition qobject.h:103
\qmltype WaylandCompositor \instantiates QWaylandCompositor \inqmlmodule QtWayland....
Combined button and popup list for selecting options.
static QOpenGLCompositor * compositor
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLintptr GLsizeiptr GLeglClientBufferEXT clientBuffer