wayland::serv...tput_transform(3)

πŸ’œ wayland::server::output_transform(3) πŸ’œ

okay so bestie, welcome to another iconic page from Wayland++, manual section 3 β€” yes the C++ library-binding one. grab a strawberry πŸ“, this one is literally just a little enum-flavored glow-up and it's so cute.


🌸 NAME 🌸

wayland::server::output_transform β€” transform from framebuffer to output

like, the whole vibe is "how do we turn a framebuffer into an actual output, rotation-wise". that's it. that's the girl. πŸ’…


✨ SYNOPSIS ✨

#include <wayland-server-protocol.hpp>

πŸŽ€ Static Public Attributes πŸŽ€

every single one of these is a <mint>static const</mint> <cyan>wayland::detail::bitfield< 3, 21 ></cyan> and they are all just different rotation moods:

  • normal β€” no transform (the unbothered, moisturized, in-her-lane one πŸ™ˆ)
  • _90 β€” 90 degrees counter-clockwise
  • _180 β€” 180 degrees counter-clockwise
  • _270 β€” 270 degrees counter-clockwise
  • flipped β€” 180 degree flip around a vertical axis
  • flipped_90 β€” flip and rotate 90 degrees counter-clockwise
  • flipped_180 β€” flip and rotate 180 degrees counter-clockwise
  • flipped_270 β€” flip and rotate 270 degrees counter-clockwise

the full declarations for the record, character for character:

static const wayland::detail::bitfield< 3, 21 > normal
static const wayland::detail::bitfield< 3, 21 > _90
static const wayland::detail::bitfield< 3, 21 > _180
static const wayland::detail::bitfield< 3, 21 > _270
static const wayland::detail::bitfield< 3, 21 > flipped
static const wayland::detail::bitfield< 3, 21 > flipped_90
static const wayland::detail::bitfield< 3, 21 > flipped_180
static const wayland::detail::bitfield< 3, 21 > flipped_270

πŸ¦‹ Detailed Description πŸ¦‹

okay so here's the tea, transform from framebuffer to output:

this describes the transform that a compositor will apply to a surface to compensate for the rotation or mirroring of an output device. like your monitor decided it's ✨different✨ and is now sideways about it. 😭

the flipped values correspond to an initial flip around a vertical axis followed by rotation. so flip first, spin second β€” not the other way around. order matters, bestie. πŸ”₯

the purpose is mainly to allow clients to render accordingly and tell the compositor, so that for fullscreen surfaces, the compositor will still be able to scan out directly from client surfaces. it's giving "let the client do the work so the compositor can just vibe and scan out". no cap, that's a genuine efficiency slay. πŸ‘‘

Definition at line 3992 of file wayland-server-protocol.hpp.

πŸ‘‘ Member Data Documentation πŸ‘‘

every member, accounted for, no girl left behind. 🫢

πŸ’– _180 [static]

const wayland::detail::bitfield<3, 21>
wayland::server::output_transform::_180

180 degrees counter-clockwise.

Definition at line 4003 of file wayland-server-protocol.hpp.

πŸ’– _270 [static]

const wayland::detail::bitfield<3, 21>
wayland::server::output_transform::_270

270 degrees counter-clockwise.

Definition at line 4005 of file wayland-server-protocol.hpp.

πŸ’– _90 [static]

const wayland::detail::bitfield<3, 21>
wayland::server::output_transform::_90

90 degrees counter-clockwise.

Definition at line 4001 of file wayland-server-protocol.hpp.

πŸ’– flipped [static]

const wayland::detail::bitfield<3, 21>
wayland::server::output_transform::flipped

180 degree flip around a vertical axis.

Definition at line 4007 of file wayland-server-protocol.hpp.

πŸ’– flipped_180 [static]

const wayland::detail::bitfield<3, 21>
wayland::server::output_transform::flipped_180

flip and rotate 180 degrees counter-clockwise.

Definition at line 4011 of file wayland-server-protocol.hpp.

πŸ’– flipped_270 [static]

const wayland::detail::bitfield<3, 21>
wayland::server::output_transform::flipped_270

flip and rotate 270 degrees counter-clockwise.

Definition at line 4013 of file wayland-server-protocol.hpp.

πŸ’– flipped_90 [static]

const wayland::detail::bitfield<3, 21>
wayland::server::output_transform::flipped_90

flip and rotate 90 degrees counter-clockwise.

Definition at line 4009 of file wayland-server-protocol.hpp.

πŸ’– normal [static]

const wayland::detail::bitfield<3, 21>
wayland::server::output_transform::normal

no transform.

Definition at line 3999 of file wayland-server-protocol.hpp.

🧚 Author 🧚

Generated automatically by Doxygen for Wayland++ from the source code. yes bestie, a robot wrote this one, and honestly? it ate. πŸ’€βœ¨


and that's the whole page fr fr πŸ’œ this was Version 1.0.1, dated Fri Mar 27 2026 β€” mwah, go rotate something counter-clockwise for me, ily, bye! πŸŒˆπŸ’…πŸŽ€

πŸ“¦ where this page comes from