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.
voidzwp_primary_selection_offer_v1_t::offer(std::stringconst&mime_type,boolpost=true)
advertise offered mime type
Parametersmime_type
Sent immediately after creating announcing the wp_primary_selection_offer through
wp_primary_selection_device.data_offer. One event is sent per offered mime type.
Definition at line 5901 of file wayland-server-protocol-unstable.cpp.
std::function<void()>&zwp_primary_selection_offer_v1_t::on_destroy()
destroy the primary selection offer Destroy the primary selection offer.
Definition at line 5895 of file wayland-server-protocol-unstable.cpp.
std::function<void(std::string,int)>&zwp_primary_selection_offer_v1_t::on_receive()
request that the data is transferred
Parametersmime_typefd
To transfer the contents of the primary selection clipboard, the client issues this request and indicates
the mime type that it wants to receive. The transfer happens through the passed file descriptor
(typically created with the pipe system call). The source client writes the data in the mime type
representation requested and then closes the file descriptor.
The receiving client reads from the read end of the pipe until EOF and closes its end, at which point the
transfer is complete.
Definition at line 5889 of file wayland-server-protocol-unstable.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