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 for proxy_t object 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