Enum smithay_client_toolkit::output::Transform
source · [−]#[repr(u32)]
#[non_exhaustive]
pub enum Transform {
Normal,
_90,
_180,
_270,
Flipped,
Flipped90,
Flipped180,
Flipped270,
}
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
no transform
_90
90 degrees counter-clockwise
_180
180 degrees counter-clockwise
_270
270 degrees counter-clockwise
Flipped
180 degree flip around a vertical axis
Flipped90
flip and rotate 90 degrees counter-clockwise
Flipped180
flip and rotate 180 degrees counter-clockwise
Flipped270
flip and rotate 270 degrees counter-clockwise
Implementations
Trait Implementations
impl Copy for Transform
impl StructuralPartialEq for Transform
Auto Trait Implementations
impl RefUnwindSafe for Transform
impl Send for Transform
impl Sync for Transform
impl Unpin for Transform
impl UnwindSafe for Transform
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more