wayland::serv..._exporter_v1_t(3)

πŸ’… NAME

wayland::server::zxdg_exporter_v1_t β€” the interface for exporting surfaces ✨

okay so real quick β€” this whole thing lives in Wayland++, that's the manual we're in, bestie πŸ’–


✨ SYNOPSIS

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

πŸŽ€ Public Member Functions

  • std::function< void()> & on_destroy () β€” destroy the xdg_exporter object πŸ’€
  • std::function< void(zxdg_exported_v1_t, surface_t)> & on_export () β€” export a surface, slay
  • bool proxy_has_object () const β€” check whether this wrapper actually wraps an object (vibe check fr)
  • void post_no_memory () const
  • uint32_t get_id () const
  • client_t get_client () const
  • unsigned int get_version () const
  • std::string get_class ()

🌸 Detailed Description

interface for exporting surfaces ✨

It's a global interface used for exporting surfaces that can later be imported using xdg_importer. iykyk 🫢

Definition at line 7950 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 β€” the interface name of the resource object, obviously πŸ’…

🧚 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, periodt.

🧚 unsigned int wayland::server::resource_t::get_version () const [inherited]

Get interface version.

Returns β€” the interface version this resource has been constructed with ✨

πŸ’– std::function< void()> & zxdg_exporter_v1_t::on_destroy ()

destroy the xdg_exporter object β€” this notifies the compositor that the xdg_exporter object will no longer be used 😭 (rip little guy, iconic while it lasted)

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

πŸ”₯ std::function< void(zxdg_exported_v1_t, surface_t)> & zxdg_exporter_v1_t::on_export ()

export a surface πŸ¦‹

Parameters

  • id β€” the new xdg_exported object
  • surface β€” the surface to export

The export request exports the passed surface so that it can later be imported via xdg_importer. When it's called, a brand new xdg_exported object gets created and xdg_exported.handle will be sent immediately β€” like, instantly, no waiting πŸ’¨ See the corresponding interface and event for the deets.

A surface may be exported multiple times, and each exported handle may be used to create an xdg_imported multiple times. Only xdg_surface surfaces may be exported β€” that part is a hard rule, do not come for me πŸ™ˆ

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

🩷 void wayland::server::resource_t::post_no_memory () const [inherited]

Post a "not enough memory" error to the client πŸ’€

If the compositor doesn't have enough memory to fulfill a certail request of the client, this function can be called to notify the client of this circumstance. (yes it says "certail", we're keeping it, character-for-character bestie 🫢)

πŸ’œ bool wayland::server::resource_t::proxy_has_object () const [inherited]

Check whether this wrapper actually wraps an object. the vibe check of functions ngl

Returns β€” true if there's an underlying object, false if this wrapper is empty πŸ«₯


🌈 Author

Generated automatically by Doxygen for Wayland++ from the source code. (not me, a robot wrote the bones of this and I gave it ✨personality✨)


okay that's the whole thing, mwah πŸŽ€

Version 1.0.1 Β· Fri Mar 27 2026 β€” and that's the sign-off, wayland::serv..._exporter_v1_t(3) out, love u, drink water πŸ’–πŸŒΈ

πŸ“¦ where this page comes from