pub enum KeyAction {
FromText,
Layout(String),
Key(Key),
Modifier(Modifier),
}Expand description
§Keyboard key action
Determines what button will do
Variants§
FromText
Derive action from text
use egui_virtual_keyboard::KeyAction;
use std::str::FromStr;
KeyAction::from_str("FromText");Layout(String)
Change Layout
use egui_virtual_keyboard::KeyAction;
use std::str::FromStr;
KeyAction::from_str("Layout(Layout_Name)");Key(Key)
use egui_virtual_keyboard::KeyAction;
use std::str::FromStr;
KeyAction::from_str("Key(A)");Modifier(Modifier)
Modifier key
use egui_virtual_keyboard::KeyAction;
use std::str::FromStr;
KeyAction::from_str("Modifier(Alt)");Trait Implementations§
Source§impl<'de> Deserialize<'de> for KeyAction
impl<'de> Deserialize<'de> for KeyAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for KeyAction
impl StructuralPartialEq for KeyAction
Auto Trait Implementations§
impl Freeze for KeyAction
impl RefUnwindSafe for KeyAction
impl Send for KeyAction
impl Sync for KeyAction
impl Unpin for KeyAction
impl UnwindSafe for KeyAction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more