Enum wayrs_client::protocol::wl_output::Transform
source · #[non_exhaustive]#[repr(u32)]pub enum Transform {
Normal = 0,
_90 = 1,
_180 = 2,
_270 = 3,
Flipped = 4,
Flipped90 = 5,
Flipped180 = 6,
Flipped270 = 7,
}Expand description
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 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.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Normal = 0
no transform
Since version 1.
_90 = 1
90 degrees counter-clockwise
Since version 1.
_180 = 2
180 degrees counter-clockwise
Since version 1.
_270 = 3
270 degrees counter-clockwise
Since version 1.
Flipped = 4
180 degree flip around a vertical axis
Since version 1.
Flipped90 = 5
flip and rotate 90 degrees counter-clockwise
Since version 1.
Flipped180 = 6
flip and rotate 180 degrees counter-clockwise
Since version 1.
Flipped270 = 7
flip and rotate 270 degrees counter-clockwise
Since version 1.