Struct breadx::keyboard::KeyboardState [−][src]
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]
display: &mut Display<Conn>
) -> Result<Self>
impl<Km: Keymap + ?Sized> KeyboardState<Km>[src]
pub fn lookup_keysyms(&self, keycode: Keycode) -> &[Keysym]ⓘ[src]
pub fn process_keycode(
&mut self,
keycode: Keycode,
modifiers: KeyButMask
) -> Option<Key>[src]
&mut self,
keycode: Keycode,
modifiers: KeyButMask
) -> Option<Key>
Trait Implementations
impl<Km: Clone + ?Sized> Clone for KeyboardState<Km>[src]
fn clone(&self) -> KeyboardState<Km>[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<Km: Debug + ?Sized> Debug for KeyboardState<Km>[src]
Auto Trait Implementations
impl<Km: ?Sized> RefUnwindSafe for KeyboardState<Km> where
Km: RefUnwindSafe, [src]
Km: RefUnwindSafe,
impl<Km: ?Sized> Send for KeyboardState<Km> where
Km: Send, [src]
Km: Send,
impl<Km: ?Sized> Sync for KeyboardState<Km> where
Km: Sync, [src]
Km: Sync,
impl<Km: ?Sized> Unpin for KeyboardState<Km> where
Km: Unpin, [src]
Km: Unpin,
impl<Km: ?Sized> UnwindSafe for KeyboardState<Km> where
Km: UnwindSafe, [src]
Km: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,