[][src]Struct breadx::auto::xproto::KeyButMask

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

Fields

inner: u16

Implementations

impl KeyButMask[src]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pub fn new(
    shift: bool,
    lock: bool,
    control: bool,
    mod1: bool,
    mod2: bool,
    mod3: bool,
    mod4: bool,
    mod5: bool,
    button1: bool,
    button2: bool,
    button3: bool,
    button4: bool,
    button5: bool
) -> Self
[src]

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

Trait Implementations

impl AsByteSequence for KeyButMask[src]

impl BitAnd<KeyButMask> for KeyButMask[src]

type Output = KeyButMask

The resulting type after applying the & operator.

impl Clone for KeyButMask[src]

impl Copy for KeyButMask[src]

impl Debug for KeyButMask[src]

impl Default for KeyButMask[src]

impl Eq for KeyButMask[src]

impl Not for KeyButMask[src]

type Output = KeyButMask

The resulting type after applying the ! operator.

impl Ord for KeyButMask[src]

impl PartialEq<KeyButMask> for KeyButMask[src]

impl PartialOrd<KeyButMask> for KeyButMask[src]

impl StructuralEq for KeyButMask[src]

impl StructuralPartialEq for KeyButMask[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.