[][src]Struct keytokey::KeyboardState

pub struct KeyboardState {
    pub unicode_mode: UnicodeSendMode,
    // some fields omitted
}

Fields

unicode_mode: UnicodeSendMode

Implementations

impl KeyboardState[src]

pub fn new() -> KeyboardState[src]

pub fn modifier(&self, modifier: Modifier) -> bool[src]

pub fn set_modifier(&mut self, modifier: Modifier, value: bool)[src]

pub fn enable_handler(&mut self, no: HandlerID)[src]

pub fn disable_handler(&mut self, no: HandlerID)[src]

pub fn set_handler(&mut self, no: HandlerID, enabled: bool)[src]

pub fn toggle_handler(&mut self, no: HandlerID)[src]

pub fn is_handler_enabled(&self, no: HandlerID) -> bool[src]

pub fn abort_and_clear_events(&mut self)[src]

tell the Keyboard to

  • reset handlers to their default state, clear
  • clear all remaining events - unhandled or not
  • reset all modifiers to default

Trait Implementations

impl Debug for KeyboardState[src]

impl Default for KeyboardState[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> Same<T> for T

type Output = T

Should always be Self

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.