4#ifndef QWAYLANDBUFFERREF_H
5#define QWAYLANDBUFFERREF_H
7#include <QtWaylandCompositor/qtwaylandcompositorglobal.h>
11#include <QtGui/qopengl.h>
14#include <QtWaylandCompositor/QWaylandSurface>
36 bool hasBuffer()
const;
37 bool hasContent()
const;
38 bool hasProtectedContent()
const;
39 bool isDestroyed()
const;
40#if QT_WAYLANDCOMPOSITOR_REMOVED_SINCE(6, 3)
45 struct wl_resource *wl_buffer()
const;
63 BufferFormatEgl_Y_XUXV
66 BufferType bufferType()
const;
67 BufferFormatEgl bufferFormatEgl()
const;
69 bool isSharedMemory()
const;
86 friend Q_WAYLANDCOMPOSITOR_EXPORT
90 {
return !(lhs == rhs); }
\inmodule QtWaylandCompositor
void unlockNativeBuffer(quintptr handle)
@ BufferFormatEgl_EXTERNAL_OES
quintptr lockNativeBuffer()
friend bool operator!=(const QWaylandBufferRef &lhs, const QWaylandBufferRef &rhs) noexcept
Returns false if lhs references the same buffer as rhs.
@ BufferType_SharedMemory
Origin
This enum type is used to specify the origin of a QWaylandSurface's buffer.
Combined button and popup list for selecting options.
constexpr bool operator!=(const timespec &t1, const timespec &t2)
GLuint64 GLenum void * handle
GLenum GLuint GLintptr GLsizeiptr size
[1]
bool operator==(const QRandomGenerator &rng1, const QRandomGenerator &rng2)