[][src]Struct wlroots::input::keyboard::event::Key

pub struct Key { /* fields omitted */ }

Methods

impl Key
[src]

Gets the raw keycode from the device.

Usually you want to use Key::input_keys since you care about what value XKB says this is.

Get how long the key has been pressed down, in milliseconds.

TODO What is this?

Get the pressed/released state of the key.

Gets the keys that are pressed using XKB to convert them to a more programmer friendly form.

Trait Implementations

impl Debug for Key
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for Key

impl !Sync for Key

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more