include/wayland-client.hpp(3)
π
include/wayland-client.hpp β a Wayland++ moment
okay so bestie. welcome to include/wayland-client.hpp(3), the Wayland++ page you didn't know you needed but literally cannot live without. this is the main character header of the whole client-side story β it pulls together the classes, the typedef, and the one (1) function that live in this file. let's get into it β¨
πΈ NAME
include/wayland-client.hpp β that's the whole name section, no cap, it's short and it knows it π
π¦ SYNOPSIS
here's everything this header drags in. copy it exactly, bestie, don't be creative with the angle brackets:
#include <atomic>
#include <cstdint>
#include <functional>
#include <memory>
#include <string>
#include <vector>
#include <wayland-version.hpp>
#include <wayland-client-core.h>
#include <wayland-util.hpp>
#include <wayland-client-protocol.hpp>
π Classes
these are the whole lineup, main character energy across the board:
class wayland::event_queue_tβ a queue forproxy_tobject events. it's the holding pen, the group chat, the "wait your turn" zone πclass wayland::proxy_tβ represents a protocol object on the client side. literally the stand-in for the thing you're talking to π«Άclass wayland::read_intentβ represents an intention to read from the display file descriptor. it's giving "i'm thinking about it" but formalized πclass wayland::display_tβ represents a connection to the compositor and acts as a proxy to the display singleton object. the big one π
β¨ Typedefs
using wayland::log_handler = std::function<void(std::string)>β the type for functions that handle log messages. iconic, honestly.
π§ Functions
void wayland::set_log_handler (log_handler handler)β set the C library log handler. yes, that's the whole sentence. slay.
β Typedef Documentation
using wayland::log_handler = std::function<void(std::string)>
so this is the type for functions that handle log messages. and the log message itself? that's the first argument, okay? don't forget it π
Definition at line 48 of file wayland-client.hpp.
π₯ Function Documentation
void wayland::set_log_handler (log_handler handler)
set the C library log handler, bestie. here's the lore: the C library sometimes logs important information β think protocol error messages β and by default those go to the standard output. this function is how you swap that out and install your own alternate function that'll receive those messages instead. very much "i'll take it from here" energy π
Parameters
- handler β function that should be called for C library log messages
π Author
Generated automatically by Doxygen for Wayland++ from the source code. not me being auto-generated π
okay that's the whole page, you ate that π before you go: this was Version 1.0.1, dated Fri Mar 27 2026 13:15, and yeah the source of all this is include/wayland-client.hpp in Wayland++ β bye bestie, go read some file descriptors responsibly πβ¨π
π¦ 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