wayland::zxdg...n_manager_v1_t(3)
π wayland::zxdg_decoration_manager_v1_t β the Wayland++ girlies' guide β¨
okay so bestie, welcome to the Wayland++ fam π«Ά this one's all about wayland::zxdg_decoration_manager_v1_t, aka the window decoration manager. she manages windows. she decorates. she's booked and busy π
πΈ NAME πΈ
wayland::zxdg_decoration_manager_v1_t β window decoration manager β¨
π SYNOPSIS π
#include <wayland-client-protocol-unstable.hpp>
Inherits wayland::proxy_t. she's got lineage, she's got range, she's iconic π
π Public Types
enum class wrapper_type { standard, display, foreign, proxy_wrapper }β the whole girl squad of proxy wrapper types π
π¦ Public Member Functions
zxdg_toplevel_decoration_v1_t get_toplevel_decoration (xdg_toplevel_t const &toplevel)β create a new toplevel decoration object β¨uint32_t get_id () constβ Get the id of a proxy object.std::string get_class () constβ Get the interface name (class) of a proxy object.uint32_t get_version () constβ Get the protocol object version of a proxy object.wrapper_type get_wrapper_type () constβ Get the type of a proxy object.void set_queue (event_queue_t queue)β Assign a proxy to an event queue.wl_proxy * c_ptr () constβ Get a pointer to the underlying C struct.bool proxy_has_object () constβ Check whether this wrapper actually wraps an object.operator bool () constβ Check whether this wrapper actually wraps an object.bool operator== (const proxy_t &right) constβ Check whether two wrappers refer to the same object.bool operator!= (const proxy_t &right) constβ Check whether two wrappers refer to different objects.void proxy_release ()β Release the wrapped object (if any), making this an empty wrapper.
π Static Public Attributes
static constexpr std::uint32_t get_toplevel_decoration_since_version = 1β Minimum protocol version required for theget_toplevel_decorationfunction. she said version one ONLY, periodt π
π Detailed Description π
window decoration manager β that's her whole job description and she's thriving β¨
So like, this interface allows a compositor to announce support for server-side decorations. no cap π«Ά
A window decoration is a set of window controls as deemed appropriate by the party managing them β you know, like the UI bits used to move, resize and change a window's state. the little buttons. the vibes. π
A client can use this protocol to request being decorated by a supporting compositor. basically: "bestie, decorate me please" π
If compositor and client do not negotiate the use of a server-side decoration using this protocol, clients continue to self-decorate as they see fit. DIY era π§
β οΈ Warning! The protocol described in this file is experimental and backward incompatible changes may be made. Backward compatible changes may be added together with the corresponding interface version bump. Backward incompatible changes are done by bumping the version number in the protocol and interface names and resetting the interface version. Once the protocol is to be declared stable, the 'z' prefix and the version number in the protocol and interface names are removed and the interface version number is reset. π so like, don't get too attached to the name, she may rebrand.
Definition at line 6882 of file wayland-client-protocol-unstable.hpp π
π Member Enumeration Documentation π
enum class wayland::proxy_t::wrapper_type [strong], [inherited]
Underlying wl_proxy type and properties of a proxy_t that affect construction, destruction, and event handling. this enum is literally the personality chart of your proxy π₯
Enumerator
standardβ C pointer is a standard type compatible withwl_proxy*. Events are dispatched and it is destructed when theproxy_tis destructed. User data is set.displayβ C pointer is awl_display*. No events are dispatched,wl_display_disconnectis called when theproxy_tis destructed. User data is set.foreignβ C pointer is a standard type compatible withwl_proxy*, but another library owns it and it should not be touched in a way that could affect the operation of the other library. No events are dispatched,wl_proxy_destroyis not called when theproxy_tis destructed, user data is not touched. Consequently, there is no reference counting for theproxy_t. Lifetime of such wrappers should preferably be short to minimize the chance that the owning library decides to destroy thewl_proxy. π hands off, she's not yours.proxy_wrapperβ C pointer is awl_proxy*that was constructed withwl_proxy_create_wrapper. No events are dispatched,wl_proxy_wrapper_destroyis called when theproxy_tis destroyed. Reference counting is active. A reference to theproxy_tcreating this proxy wrapper is held to extend its lifetime until after the proxy wrapper is destroyed.
Definition at line 117 of file wayland-client.hpp β¨
π¦ Member Function Documentation π¦
wl_proxy * wayland::proxy_t::c_ptr () const [inherited]
Get a pointer to the underlying C struct.
Returns β The underlying wl_proxy wrapped by this proxy_t if it exists, otherwise an exception is thrown. π no object? no pointer. that's the rule.
std::string wayland::proxy_t::get_class () const [inherited]
Get the interface name (class) of a proxy object.
Returns β The interface name of the object associated with the proxy.
uint32_t wayland::proxy_t::get_id () const [inherited]
Get the id of a proxy object.
Returns β The id the object associated with the proxy.
zxdg_toplevel_decoration_v1_t zxdg_decoration_manager_v1_t::get_toplevel_decoration (xdg_toplevel_t const & toplevel)
create a new toplevel decoration object π the main character function, honestly.
Parameters β toplevel
Create a new decoration object associated with the given toplevel.
β οΈ Creating anxdg_toplevel_decorationfrom anxdg_toplevelwhich has a buffer attached or committed is a client error, and any attempts by a client to attach or manipulate a buffer prior to the firstxdg_toplevel_decoration.configureevent must also be treated as errors. fr fr, do not do this π«Ά
Definition at line 8833 of file wayland-client-protocol-unstable.cpp.
uint32_t wayland::proxy_t::get_version () const [inherited]
Get the protocol object version of a proxy object. Gets the protocol object version of a proxy object, or 0 if the proxy was created with unversioned API.
A returned value of 0 means that no version information is available, so the caller must make safe assumptions about the object's real version. π¬ lowkey stressful but okay.
display_t will always return version 0.
Returns β The protocol object version of the proxy or 0.
wrapper_type wayland::proxy_t::get_wrapper_type () const [inline], [inherited]
Get the type of a proxy object.
Definition at line 303 of file wayland-client.hpp.
wayland::proxy_t::operator bool () const [inherited]
Check whether this wrapper actually wraps an object.
Returns β true if there is an underlying object, false if this wrapper is empty.
bool wayland::proxy_t::operator!= (const proxy_t & right) const [inherited]
Check whether two wrappers refer to different objects. not the same girl π
bool wayland::proxy_t::operator== (const proxy_t & right) const [inherited]
Check whether two wrappers refer to the same object. same girl, different outfit β¨
bool wayland::proxy_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.
void wayland::proxy_t::proxy_release () [inherited]
Release the wrapped object (if any), making this an empty wrapper. Note that display_t instances cannot be released this way. Attempts to do so are ignored. π like, she's not leaving, stop asking.
Examples β foreign_display.cpp.
void wayland::proxy_t::set_queue (event_queue_t queue) [inherited]
Assign a proxy to an event queue.
Parameters β queue The event queue that will handle this proxy.
Assign proxy to event queue. Events coming from proxy will be queued in queue instead of the display's main queue.
See also: display_t::dispatch_queue().
Examples β proxy_wrapper.cpp.
π Member Data Documentation π
std::uint32_t wayland::zxdg_decoration_manager_v1_t::get_toplevel_decoration_since_version = 1 [static], [constexpr]
Minimum protocol version required for the get_toplevel_decoration function.
Definition at line 6920 of file wayland-client-protocol-unstable.hpp π
β Author β
Generated automatically by Doxygen for Wayland++ from the source code. (not a person, a whole machine aesthetic π)
and that's the tea bestie π«Ά this page is Version 1.0.1, dated Fri Mar 27 2026 β slay, go decorate some windows, ily, bye πβ¨π
π¦ 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