Product SiteDocumentation Site

A.19.2.2. wl_output::transform - 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.
The flipped values correspond to an initial flip around a vertical axis followed by rotation.
The purpose is mainly to allow clients render accordingly and tell the compositor, so that for fullscreen surfaces, the compositor will still be able to scan out directly from client surfaces.
wl_output::transform values
normal
Value: 0
90
Value: 1
180
Value: 2
270
Value: 3
flipped
Value: 4
flipped_90
Value: 5
flipped_180
Value: 6
flipped_270
Value: 7