14#define CHECK1(l, r, op) \
15 static_assert(std::is_same_v< \
17 decltype(std::declval<QWaylandBufferRef l >() op \
18 std::declval<QWaylandBufferRef r >()) \
124 return lhs.d->buffer == rhs.d->buffer;
278QOpenGLTexture *QWaylandBufferRef::toOpenGLTexture(
int plane)
const
283 return d->
buffer->toOpenGlTexture(plane);
QtWayland::ClientBuffer * buffer
\inmodule QtWaylandCompositor
QWaylandBufferRef & operator=(const QWaylandBufferRef &ref)
Assigns ref to this buffer and adds a reference to it.
bool hasContent() const
Returns true if this QWaylandBufferRef references a buffer that has content.
void unlockNativeBuffer(quintptr handle)
bool isDestroyed() const
Returns true if this QWaylandBufferRef references a buffer that has been destroyed.
QWaylandSurface::Origin origin() const
Returns the origin of the buffer.
bool hasProtectedContent() const
Returns true if this QWaylandBufferRef references a buffer that has protected content.
~QWaylandBufferRef()
Dereferences the buffer.
bool isSharedMemory() const
Returns true if the buffer is a shared memory buffer.
QWaylandBufferRef()
Constructs a null buffer ref.
quintptr lockNativeBuffer()
bool hasBuffer() const
Returns true if this QWaylandBufferRef references a buffer.
BufferFormatEgl bufferFormatEgl() const
bool isNull() const
Returns true if this QWaylandBufferRef does not reference a buffer.
@ BufferType_SharedMemory
BufferType bufferType() const
struct wl_resource * wl_buffer() const
Returns the Wayland resource for the buffer.
QSize size() const
Returns the size of the buffer.
QImage image() const
Returns an image with the contents of the buffer.
Origin
This enum type is used to specify the origin of a QWaylandSurface's buffer.
static bool hasProtectedContent(ClientBuffer *buffer)
virtual quintptr lockNativeBuffer()
static bool hasContent(ClientBuffer *buffer)
virtual QImage image() const
struct::wl_resource * waylandBufferHandle() const
virtual QWaylandSurface::Origin origin() const =0
virtual void unlockNativeBuffer(quintptr native_buffer) const
virtual QWaylandBufferRef::BufferFormatEgl bufferFormatEgl() const
bool isSharedMemory() const
virtual QSize size() const =0
Combined button and popup list for selecting options.
GLuint64 GLenum void * handle
bool operator==(const QWaylandBufferRef &lhs, const QWaylandBufferRef &rhs) noexcept