31 QWaylandBufferRef(
const QWaylandBufferRef &ref);
34 QWaylandBufferRef &operator=(
const QWaylandBufferRef &ref);
36 bool hasBuffer()
const;
37 bool hasContent()
const;
38 bool hasProtectedContent()
const;
39 bool isDestroyed()
const;
40#if QT_WAYLANDCOMPOSITOR_REMOVED_SINCE(6
, 3
)
41 bool operator==(
const QWaylandBufferRef &ref);
42 bool operator!=(
const QWaylandBufferRef &ref);
45 struct wl_resource *wl_buffer()
const;
48 QWaylandSurface::Origin origin()
const;
52 BufferType_SharedMemory,
56 enum BufferFormatEgl {
60 BufferFormatEgl_EXTERNAL_OES,
61 BufferFormatEgl_Y_U_V,
63 BufferFormatEgl_Y_XUXV
66 BufferType bufferType()
const;
67 BufferFormatEgl bufferFormatEgl()
const;
69 bool isSharedMemory()
const;
73 QOpenGLTexture *toOpenGLTexture(
int plane = 0)
const;
76 quintptr lockNativeBuffer();
77 void unlockNativeBuffer(quintptr handle);
80 explicit QWaylandBufferRef(QtWayland::ClientBuffer *buffer);
81 QtWayland::ClientBuffer *buffer()
const;
82 class QWaylandBufferRefPrivate *
const d;
83 friend class QWaylandBufferRefPrivate;
84 friend class QWaylandSurfacePrivate;
86 friend Q_WAYLANDCOMPOSITOR_EXPORT
87 bool operator==(
const QWaylandBufferRef &lhs,
const QWaylandBufferRef &rhs)
noexcept;
89 bool operator!=(
const QWaylandBufferRef &lhs,
const QWaylandBufferRef &rhs)
noexcept
90 {
return !(lhs == rhs); }