Enum sixtyfps_corelib::input::InternalKeyCode [−][src]
pub enum InternalKeyCode { Left, Right, Home, End, Back, Delete, Return, Escape, }
InternalKeyCode is used to certain keys to unicode characters, since our public key event only exposes a string. This enum captures this mapping.
Variants
Code corresponding to the left cursor key - encoded as 0xE ASCII (shift out)
Code corresponding to the right cursor key – encoded as 0xF ASCII (shift in)
Code corresponding to the home key – encoded as 0x2 ASCII (start of text)
Code corresponding to the end key – encoded as 0x3 ASCII (end of text)
Code corresponding to the backspace key – encoded as 0x7 ASCII (backspace)
Code corresponding to the delete key – encoded as 0x7F ASCII (delete)
Code corresponding to the return key – encoded as 0xA ASCII (newline)
Code corresponding to the return key – encoded as 0x1b ASCII (escape)
Implementations
impl InternalKeyCode
[src]
impl InternalKeyCode
[src]pub fn encode_to_string(&self) -> SharedString
[src]
Encodes the internal key code as string
pub fn try_decode_from_string(str: &SharedString) -> Option<Self>
[src]
Tries to see if the provided string corresponds to a single special encoded key.
Trait Implementations
impl Clone for InternalKeyCode
[src]
impl Clone for InternalKeyCode
[src]fn clone(&self) -> InternalKeyCode
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialEq<InternalKeyCode> for InternalKeyCode
[src]
impl PartialEq<InternalKeyCode> for InternalKeyCode
[src]impl StructuralPartialEq for InternalKeyCode
[src]
impl StructuralPartialEq for InternalKeyCode
[src]Auto Trait Implementations
impl RefUnwindSafe for InternalKeyCode
impl RefUnwindSafe for InternalKeyCode
impl Send for InternalKeyCode
impl Send for InternalKeyCode
impl Sync for InternalKeyCode
impl Sync for InternalKeyCode
impl Unpin for InternalKeyCode
impl Unpin for InternalKeyCode
impl UnwindSafe for InternalKeyCode
impl UnwindSafe for InternalKeyCode