#[repr(u32)]pub enum OutputTransform {
Normal = 0,
Rotate90 = 1,
Rotate180 = 2,
Rotate270 = 3,
Flipped = 4,
FlippedRotate90 = 5,
FlippedRotate180 = 6,
FlippedRotate270 = 7,
}Expand description
Output transform applied to the output’s content.
Matches the Wayland wl_output.transform enum.
Variants§
Normal = 0
No transform
Rotate90 = 1
90 degrees counter-clockwise
Rotate180 = 2
180 degrees
Rotate270 = 3
270 degrees counter-clockwise (90 clockwise)
Flipped = 4
Horizontal flip
FlippedRotate90 = 5
Flip + 90 degrees counter-clockwise
FlippedRotate180 = 6
Flip + 180 degrees
FlippedRotate270 = 7
Flip + 270 degrees counter-clockwise
Implementations§
Source§impl OutputTransform
impl OutputTransform
Sourcepub fn swaps_dimensions(self) -> bool
pub fn swaps_dimensions(self) -> bool
Returns true if the transform includes a 90 or 270 degree rotation, which swaps width and height.
Trait Implementations§
Source§impl Clone for OutputTransform
impl Clone for OutputTransform
Source§fn clone(&self) -> OutputTransform
fn clone(&self) -> OutputTransform
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OutputTransform
impl Debug for OutputTransform
Source§impl PartialEq for OutputTransform
impl PartialEq for OutputTransform
impl Copy for OutputTransform
impl Eq for OutputTransform
impl StructuralPartialEq for OutputTransform
Auto Trait Implementations§
impl Freeze for OutputTransform
impl RefUnwindSafe for OutputTransform
impl Send for OutputTransform
impl Sync for OutputTransform
impl Unpin for OutputTransform
impl UnwindSafe for OutputTransform
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)