pub struct KeyPressEvent { /* private fields */ }
Expand description

a key was pressed/released

Implementations

The keycode (a number representing a physical key on the keyboard) of the key which was pressed.

Time when the event was generated (in milliseconds).

The root window of child.

The X coordinate of the pointer relative to the root window at the time of the event.

The Y coordinate of the pointer relative to the root window at the time of the event.

If same_screen is true, this is the X coordinate relative to the event window’s origin. Otherwise, event_x will be set to zero.

If same_screen is true, this is the Y coordinate relative to the event window’s origin. Otherwise, event_y will be set to zero.

The logical state of the pointer buttons and modifier keys just prior to the event.

Whether the event window is on the same screen as the root window.

Trait Implementations

The extension associated to this event, or None for the main protocol

The number associated to this event

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Build Self from a raw pointer Read more

Obtain the raw pointer representation

Convert self into a raw pointer Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.