[−][src]Struct keybd_event::KeyBondingInstance
Use for create and run the simulation.
Methods
impl KeyBondingInstance
[src]
pub fn new() -> Result<KeyBondingInstance, String>
[src]
Default function for create a new instance of KeyBondingInstance.
pub fn new_with_platform(
platform: Box<dyn KBPlatform>
) -> Result<KeyBondingInstance, String>
[src]
platform: Box<dyn KBPlatform>
) -> Result<KeyBondingInstance, String>
For create new KeyBondingInstance with specific platform.
pub fn clear(&mut self)
[src]
Clean data of KeyBonding
pub fn set_keys(&mut self, keys: Vec<KeyboardKey>)
[src]
pub fn add_keys(&mut self, keys: &[KeyboardKey])
[src]
pub fn add_key(&mut self, key: KeyboardKey)
[src]
pub fn has_shift(&mut self, b: bool)
[src]
pub fn has_alt(&mut self, b: bool)
[src]
pub fn has_ctrl(&mut self, b: bool)
[src]
pub fn has_rctrl(&mut self, b: bool)
[src]
pub fn has_rshift(&mut self, b: bool)
[src]
pub fn has_altgr(&mut self, b: bool)
[src]
pub fn launching(&mut self)
[src]
For launch the simulation
Auto Trait Implementations
impl !Sync for KeyBondingInstance
impl !Send for KeyBondingInstance
impl Unpin for KeyBondingInstance
impl !RefUnwindSafe for KeyBondingInstance
impl !UnwindSafe for KeyBondingInstance
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,