wayland::serv..._exported_v1_t(3)

🌸 NAME 🌸

okay bestie, welcome to the Wayland++ manual page wayland::serv..._exported_v1_t(3). This one is all about wayland::server::zxdg_exported_v1_t β€” literally an exported surface handle. ✨

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <wayland-server-protocol-unstable.hpp>

πŸ’… Public Member Functions

  • std::function< void()> & on_destroy () β€” unexport the exported surface.
  • void handle (std::string const &handle, bool post=true) β€” the exported surface handle.
  • bool proxy_has_object () const β€” Check whether this wrapper actually wraps an object.
  • void post_no_memory () const β€” inherited from resource_t; full deets below.
  • uint32_t get_id () const β€” inherited from resource_t; full deets below.
  • client_t get_client () const β€” inherited from resource_t; full deets below.
  • unsigned int get_version () const β€” inherited from resource_t; full deets below.
  • std::string get_class () β€” inherited from resource_t; full deets below.

πŸŽ€ Static Public Attributes

  • static constexpr std::uint32_t handle_since_version = 1 β€” Minimum protocol version required for the handle function.

🧚 Detailed Description 🧚

An xdg_exported object represents an exported reference to a surface. The exported surface may be referenced as long as the xdg_exported object is not destroyed. Destroying the xdg_exported invalidates any relationship the importer may have established using xdg_imported.

Definition at line 8074 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_v1_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. A handle may be used to import the surface multiple times.

Definition at line 7783 of file wayland-server-protocol-unstable.cpp.

std::function< void()> & zxdg_exported_v1_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 7777 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_v1_t::handle_since_version = 1 [static], [constexpr]

Minimum protocol version required for the handle function.

Definition at line 8122 of file wayland-server-protocol-unstable.hpp.

🌈 Author 🌈

Generated automatically by Doxygen for Wayland++ from the source code.


πŸ’– That's the whole vibe: Version 1.0.1, dated Fri Mar 27 2026, from the Wayland++ source, manual page wayland::serv..._exported_v1_t(3) β€” auto-generated and iconic. πŸ’…βœ¨

πŸ“¦ where this page comes from