Struct breadx::keyboard::KeyboardState[][src]

pub struct KeyboardState<Km: ?Sized = DefaultKeymap> { /* fields omitted */ }

Keep track of keys and currently tracked modifiers.

Implementations

impl<Km> KeyboardState<Km>[src]

pub fn from_keymap(keymap: Km) -> Self[src]

impl KeyboardState<XprotoKeymap>[src]

pub fn new<Conn: Connection>(display: &mut Display<Conn>) -> Result<Self>[src]

pub async fn new_async<Conn: AsyncConnection + Send>(
    display: &mut Display<Conn>
) -> Result<Self>
[src]

impl<Km: Keymap + ?Sized> KeyboardState<Km>[src]

pub fn lookup_keysyms(&self, keycode: Keycode) -> &[Keysym]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

pub fn process_keycode(
    &mut self,
    keycode: Keycode,
    modifiers: KeyButMask
) -> Option<Key>
[src]

Trait Implementations

impl<Km: Clone + ?Sized> Clone for KeyboardState<Km>[src]

impl<Km: Debug + ?Sized> Debug for KeyboardState<Km>[src]

Auto Trait Implementations

impl<Km: ?Sized> RefUnwindSafe for KeyboardState<Km> where
    Km: RefUnwindSafe
[src]

impl<Km: ?Sized> Send for KeyboardState<Km> where
    Km: Send
[src]

impl<Km: ?Sized> Sync for KeyboardState<Km> where
    Km: Sync
[src]

impl<Km: ?Sized> Unpin for KeyboardState<Km> where
    Km: Unpin
[src]

impl<Km: ?Sized> UnwindSafe for KeyboardState<Km> where
    Km: UnwindSafe
[src]

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.