Struct show_image::event::WindowKeyboardInputEvent
source · [−]pub struct WindowKeyboardInputEvent {
pub window_id: WindowId,
pub device_id: DeviceId,
pub input: KeyboardInput,
pub is_synthetic: bool,
}
Expand description
A window received keyboard input.
Fields
window_id: WindowId
The ID of the window.
device_id: DeviceId
The device that generated the input.
input: KeyboardInput
The received input.
is_synthetic: bool
Flag to indicate if the input is synthetic.
Some synthetic events may be generated to report changes in keyboard state while the window did not have input focus. This flag allows you to distinguish such events.
Trait Implementations
sourceimpl Clone for WindowKeyboardInputEvent
impl Clone for WindowKeyboardInputEvent
sourcefn clone(&self) -> WindowKeyboardInputEvent
fn clone(&self) -> WindowKeyboardInputEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for WindowKeyboardInputEvent
impl Debug for WindowKeyboardInputEvent
sourceimpl From<WindowKeyboardInputEvent> for WindowEvent
impl From<WindowKeyboardInputEvent> for WindowEvent
sourcefn from(other: WindowKeyboardInputEvent) -> Self
fn from(other: WindowKeyboardInputEvent) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for WindowKeyboardInputEvent
impl Send for WindowKeyboardInputEvent
impl Sync for WindowKeyboardInputEvent
impl Unpin for WindowKeyboardInputEvent
impl UnwindSafe for WindowKeyboardInputEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more