wayland::serv..._exported_v2_t(3)
π NAME π
Okay bestie, this is wayland::serv..._exported_v2_t(3) from the Wayland++ manual, and the full class is wayland::server::zxdg_exported_v2_t β an exported surface handle. β¨
π¦ SYNOPSIS π¦
Start with the include, because obviously:
#include <wayland-server-protocol-unstable.hpp>
πΈ Public Member Functions πΈ
std::function< void()> & on_destroy ()β unexport the exported surfacevoid handle (std::string const &handle, bool post=true)β the exported surface handlebool 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 ()
β¨ Static Public Attributes β¨
static constexpr std::uint32_t handle_since_version = 1β Minimum protocol version required for thehandlefunction.
π Detailed Description π
wayland::server::zxdg_exported_v2_t is an exported surface handle. An xdg_exported object represents an exported reference to a surface. The exported surface may be referenced as long as the xdg_exported object not destroyed. Destroying the xdg_exported invalidates any relationship the importer may have established using xdg_imported.
Definition at line 8349 of file wayland-server-protocol-unstable.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.
π₯ void zxdg_exported_v2_t::handle (std::string const & handle, bool post = true)
the exported surface handle
Parameters: handle β the exported surface handle
The handle event contains the unique handle of this exported surface reference. It may be shared with any client, which then can use it to import the surface by calling xdg_importer.import_toplevel. A handle may be used to import the surface multiple times.
Definition at line 7974 of file wayland-server-protocol-unstable.cpp.
π« std::function< void()> & zxdg_exported_v2_t::on_destroy ()
unexport the exported surface Revoke the previously exported surface. This invalidates any relationship the importer may have set up using the xdg_imported created given the handle sent via xdg_exported.handle.
Definition at line 7968 of file wayland-server-protocol-unstable.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
π Member Data Documentation π
π std::uint32_t wayland::server::zxdg_exported_v2_t::handle_since_version = 1
[static], [constexpr]
Minimum protocol version required for the handle function.
Definition at line 8397 of file wayland-server-protocol-unstable.hpp.
π«Ά Author π«Ά
Generated automatically by Doxygen for Wayland++ from the source code.
Version 1.0.1, dated Fri Mar 27 2026, with the footerβs 13wayland::serv..._exported_v2_t(3) tag β thatβs the whole page, bestie. Slay, hydrate, and donβt destroy your exported refs unless you mean it. π
π
π¦ 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