wayland::serv..._imported_v1_t(3)
π wayland::serv..._imported_v1_t(3) β Wayland++ manual π
okay bestie, welcome to the wayland::serv..._imported_v1_t(3) page from the Wayland++ manual. This is the whole glow-up for wayland::server::zxdg_imported_v1_t, aka an imported surface handle. Let's get into it π
β¨
πΈ NAME πΈ
wayland::server::zxdg_imported_v1_t β an imported surface handle
π¦ SYNOPSIS π¦
#include <wayland-server-protocol-unstable.hpp>
π«Ά Public Member Functions
std::function< void()> & on_destroy ()β handles destroying thexdg_importedobjectstd::function< void(surface_t)> & on_set_parent_of ()β sets this imported surface as the parent of some surfacevoid destroyed (bool post=true)β fires when the imported surface handle has been destroyedbool proxy_has_object () constβ checks whether this wrapper actually wraps an objectvoid post_no_memory () constβ posts a "not enough memory" error to the clientuint32_t get_id () constβ grabs the internal ID of the resourceclient_t get_client () constβ grabs the client that owns the resourceunsigned int get_version () constβ grabs the interface version this resource was constructed withstd::string get_class ()β grabs the interface name (class) of a resource object
β¨ Static Public Attributes
static constexpr std::uint32_t destroyed_since_version = 1β the minimum protocol version required for thedestroyedfunction
π¦ Detailed Description π¦
an imported surface handle
An xdg_imported object represents an imported reference to a surface exported by some client. A client can use this interface to manipulate relationships between its own surfaces and the imported surface.
Definition at line 8136 of file wayland-server-protocol-unstable.hpp.
π Member Function Documentation π
π void zxdg_imported_v1_t::destroyed (bool post = true)
the imported surface handle has been destroyed. The imported surface handle has been destroyed and any relationship set up has been invalidated. This may happen for various reasons, for example if the exported surface or the exported surface handle has been destroyed, or if the handle used for importing was invalid.
Definition at line 7831 of file wayland-server-protocol-unstable.cpp.
π 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()> & zxdg_imported_v1_t::on_destroy ()
destroy the xdg_imported object. Notify the compositor that it will no longer use the xdg_imported object. Any relationship that may have been set up will at this point be invalidated.
Definition at line 7819 of file wayland-server-protocol-unstable.cpp.
π std::function< void(surface_t)> & zxdg_imported_v1_t::on_set_parent_of ()
set as the parent of some surface
Parameters:
surfaceβ the child surface
Set the imported surface as the parent of some surface of the client. The passed surface must be a toplevel xdg_surface. Calling this function sets up a surface-to-surface relation with the same stacking and positioning semantics as xdg_surface.set_parent.
Definition at line 7825 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 request from 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_imported_v1_t::destroyed_since_version = 1 [static], [constexpr]
Minimum protocol version required for the destroyed function.
Definition at line 8195 of file wayland-server-protocol-unstable.hpp.
π Author π
Generated automatically by Doxygen for Wayland++ from the source code.
That's the whole vibe, bestie! Signing off with Version 1.0.1, dated Fri Mar 27 2026 (and yes, the footer had a lil 13 in there too π), from the Wayland++ manual. πβ¨
π¦ 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