std::stringwayland::server::resource_t::get_class()[inherited]
Retrieve the interface name (class) of a resource object.
Returns
Interface name of the resource object.
client_twayland::server::resource_t::get_client()const[inherited]
Get the associated client
Returns
the client that owns the resource.
uint32_twayland::server::resource_t::get_id()const[inherited]
Get the internal ID of the resource
Returns
the internal ID of the resource
unsignedintwayland::server::resource_t::get_version()const[inherited]
Get interface version
Returns
Interface version this resource has been constructed with.
std::function<void()>&buffer_t::on_destroy()
destroy a buffer Destroy a buffer. If and how you need to release the backing storage is defined by the
buffer factory interface.
For possible side-effects to a surface, see wl_surface.attach.
Definition at line 1806 of file wayland-server-protocol.cpp.
voidwayland::server::resource_t::post_no_memory()const[inherited]
Post 'not enough memory' error to the client
If the compositor has not enough memory to fulfill a certail request of the client, this function can be
called to notify the client of this circumstance.
boolwayland::server::resource_t::proxy_has_object()const[inherited]
Check whether this wrapper actually wraps an object.
Returns
true if there is an underlying object, false if this wrapper is empty
voidbuffer_t::release(boolpost=true)
compositor releases buffer Sent when this wl_buffer is no longer used by the compositor. The client is
now free to reuse or destroy this buffer and its backing storage.
If a client receives a release event before the frame callback requested in the same wl_surface.commit
that attaches this wl_buffer to a surface, then the client is immediately free to reuse the buffer and
its backing storage, and does not need a second buffer for the next surface content update. Typically
this is possible, when the compositor maintains a copy of the wl_surface contents, e.g. as a GL texture.
This is an important optimization for GL(ES) compositors with wl_shm clients.
Definition at line 1812 of file wayland-server-protocol.cpp.