Enum sixtyfps_corelib::input::InternalKeyCode[][src]

pub enum InternalKeyCode {
    Left,
    Right,
    Home,
    End,
    Back,
    Delete,
    Return,
    Escape,
}
Expand description

InternalKeyCode is used to certain keys to unicode characters, since our public key event only exposes a string. This enum captures this mapping.

Variants

Left

Code corresponding to the left cursor key - encoded as 0xE ASCII (shift out)

Right

Code corresponding to the right cursor key – encoded as 0xF ASCII (shift in)

Home

Code corresponding to the home key – encoded as 0x2 ASCII (start of text)

End

Code corresponding to the end key – encoded as 0x3 ASCII (end of text)

Back

Code corresponding to the backspace key – encoded as 0x7 ASCII (backspace)

Delete

Code corresponding to the delete key – encoded as 0x7F ASCII (delete)

Return

Code corresponding to the return key – encoded as 0xA ASCII (newline)

Escape

Code corresponding to the return key – encoded as 0x1b ASCII (escape)

Implementations

Encodes the internal key code as string

Tries to see if the provided string corresponds to a single special encoded key.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.