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 thexdg_exporterobject πstd::function< void(zxdg_exported_v1_t, surface_t)> & on_export ()β export a surface, slaybool proxy_has_object () constβ check whether this wrapper actually wraps an object (vibe check fr)void post_no_memory () constuint32_t get_id () constclient_t get_client () constunsigned int get_version () conststd::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 line7950of filewayland-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 line7685of filewayland-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 newxdg_exportedobjectsurfaceβ 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 line7691of filewayland-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
- 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