[][src]Struct penrose::core::bindings::MouseState

pub struct MouseState {
    pub button: MouseButton,
    pub modifiers: Vec<ModifierKey>,
}

A mouse state specification indicating the button and modifiers held

Fields

button: MouseButton

The MouseButton being held

modifiers: Vec<ModifierKey>

All ModifierKeys being held

Implementations

impl MouseState[src]

pub fn new(button: MouseButton, mut modifiers: Vec<ModifierKey>) -> Self[src]

Construct a new MouseState

impl MouseState[src]

pub fn mask(&self) -> u16[src]

The xcb bitmask for this MouseState

pub fn button(&self) -> u8[src]

The xcb button ID for this MouseState

Trait Implementations

impl Clone for MouseState[src]

impl Debug for MouseState[src]

impl Eq for MouseState[src]

impl Hash for MouseState[src]

impl PartialEq<MouseState> for MouseState[src]

impl StructuralEq for MouseState[src]

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