[−][src]Enum blinds::Event
An indicator something has changed or input has been dispatched
Variants
The size of the window has changed, see Window::size
ScaleFactorChanged(f32)
The scale factor of the window has changed, see Window::scale_factor
Focused(bool)
The window has gained operating system focus (true), or lost it (false)
ReceivedCharacter(char)
The user typed a character, used for text input
Don't use keyboard events for text! Depending on how the user's operating system and keyboard layout are configured, different keys may produce different Unicode characters.
A key has been pressed, released, or held down
Operating systems often have key repeat settings that cause duplicate events to be generated for a single press.
Fields of KeyboardInput
key: Key
state: ElementState
A given pointer has entered the window
Fields of MouseEntered
pointer: Pointer
A given pointer has left the window
Fields of MouseLeft
pointer: Pointer
The pointer has a new position within the window
The mousewheel has scrolled, either in lines or pixels (depending on the input method)
Fields of MouseWheel
pointer: Pointer
delta: MouseScrollDelta
A mouse button has been pressed or released
Fields of MouseInput
pointer: Pointer
state: ElementState
The keyboard modifiers have changed.
Fields of ModifiersChanged
modifiers: Modifiers
A gamepad button has been pressed or released, or an axis has changed
Fields of GamepadEvent
id: GamepadId
event: GamepadEvent
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,