[][src]Struct breadx::auto::randr::Rotation

#[repr(transparent)]pub struct Rotation {
    pub inner: u16,
}

Fields

inner: u16

Implementations

impl Rotation[src]

pub fn rotate_0(&self) -> bool[src]

pub fn set_rotate_0(&mut self, val: bool) -> &mut Self[src]

pub fn rotate_90(&self) -> bool[src]

pub fn set_rotate_90(&mut self, val: bool) -> &mut Self[src]

pub fn rotate_180(&self) -> bool[src]

pub fn set_rotate_180(&mut self, val: bool) -> &mut Self[src]

pub fn rotate_270(&self) -> bool[src]

pub fn set_rotate_270(&mut self, val: bool) -> &mut Self[src]

pub fn reflect_x(&self) -> bool[src]

pub fn set_reflect_x(&mut self, val: bool) -> &mut Self[src]

pub fn reflect_y(&self) -> bool[src]

pub fn set_reflect_y(&mut self, val: bool) -> &mut Self[src]

pub fn new(
    rotate_0: bool,
    rotate_90: bool,
    rotate_180: bool,
    rotate_270: bool,
    reflect_x: bool,
    reflect_y: bool
) -> Self
[src]

pub fn count_ones(&self) -> usize[src]

Trait Implementations

impl AsByteSequence for Rotation[src]

impl BitAnd<Rotation> for Rotation[src]

type Output = Rotation

The resulting type after applying the & operator.

impl Clone for Rotation[src]

impl Copy for Rotation[src]

impl Debug for Rotation[src]

impl Default for Rotation[src]

impl Eq for Rotation[src]

impl Not for Rotation[src]

type Output = Rotation

The resulting type after applying the ! operator.

impl Ord for Rotation[src]

impl PartialEq<Rotation> for Rotation[src]

impl PartialOrd<Rotation> for Rotation[src]

impl StructuralEq for Rotation[src]

impl StructuralPartialEq for Rotation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.