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 the xdg_imported object
  • std::function< void(surface_t)> & on_set_parent_of () β€” sets this imported surface as the parent of some surface
  • void destroyed (bool post=true) β€” fires when the imported surface handle has been destroyed
  • bool proxy_has_object () const β€” checks whether this wrapper actually wraps an object
  • void post_no_memory () const β€” posts a "not enough memory" error to the client
  • uint32_t get_id () const β€” grabs the internal ID of the resource
  • client_t get_client () const β€” grabs the client that owns the resource
  • unsigned int get_version () const β€” grabs the interface version this resource was constructed with
  • std::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 the destroyed function

πŸ¦„ 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