wayland::serve...vice_manager_t(3)
πΈ NAME πΈ
wayland::server::data_device_manager_t β data transfer interface
okay bestie, youβre on the wayland::serve...vice_manager_t(3) page from the Wayland++ manual, and itβs literally the server-side data transfer interface. No cap. β¨
π¦ SYNOPSIS π¦
#include <wayland-server-protocol.hpp>
π Public Member Functions π
std::function< void(data_source_t)> & on_create_data_source ()β create a new data sourcestd::function< void(data_device_t, seat_t)> & on_get_data_device ()β create a new data devicebool proxy_has_object () constβ Check whether this wrapper actually wraps an object.void post_no_memory () constuint32_t get_id () constclient_t get_client () constunsigned int get_version () conststd::string get_class ()
π Detailed Description π
The wl_data_device_manager is a singleton global object that provides access to inter-client data transfer mechanisms such as copy-and-paste and drag-and-drop. These mechanisms are tied to a wl_seat, and this interface lets a client get a wl_data_device corresponding to a wl_seat.
Depending on the version bound, the objects created from the bound wl_data_device_manager object will have different requirements for functioning properly. See wl_data_source.set_actions, wl_data_offer.accept and wl_data_offer.finish for details.
Definition at line 1564 of file wayland-server-protocol.hpp.
π₯ Member Function Documentation π₯
std::string wayland::server::resource_t::get_class () [inherited]
Retrieve the interface name (class) of a resource object.
Returns: Interface name of the resource object.
client_t wayland::server::resource_t::get_client () const [inherited]
Get the associated client
Returns: the client that owns the resource.
uint32_t wayland::server::resource_t::get_id () const [inherited]
Get the internal ID of the resource
Returns: the internal ID of the resource
unsigned int wayland::server::resource_t::get_version () const [inherited]
Get interface version
Returns: Interface version this resource has been constructed with.
std::function< void(data_source_t)> & data_device_manager_t::on_create_data_source ()
create a new data source
Parameters:
idβ data source to create
Create a new data source.
Definition at line 2169 of file wayland-server-protocol.cpp.
std::function< void(data_device_t, seat_t)> & data_device_manager_t::on_get_data_device ()
create a new data device
Parameters:
idβ data device to createseatβ seat associated with the data device
Create a new data device for a given seat.
Definition at line 2175 of file wayland-server-protocol.cpp.
void wayland::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.
bool wayland::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
π Author π
Generated automatically by Doxygen for Wayland++ from the source code.
okay bestie, thatβs the whole vibe check. π
The footer is giving Version 1.0.1, Fri Mar 27 2026, and the tag 1wayland::serve...vice_manager_t(3). You ate this page up, fr fr. π«Ά
π¦ where this page comes from
- ubuntu stonking: waylandpp-dev 1.0.1-2 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms