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§
source§impl Clone for WindowKeyboardInputEvent
impl Clone for WindowKeyboardInputEvent
source§fn clone(&self) -> WindowKeyboardInputEvent
fn clone(&self) -> WindowKeyboardInputEvent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for WindowKeyboardInputEvent
impl Debug for WindowKeyboardInputEvent
source§impl From<WindowKeyboardInputEvent> for WindowEvent
impl From<WindowKeyboardInputEvent> for WindowEvent
source§fn from(other: WindowKeyboardInputEvent) -> Self
fn from(other: WindowKeyboardInputEvent) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WindowKeyboardInputEvent
impl RefUnwindSafe for WindowKeyboardInputEvent
impl Send for WindowKeyboardInputEvent
impl Sync for WindowKeyboardInputEvent
impl Unpin for WindowKeyboardInputEvent
impl UnwindSafe for WindowKeyboardInputEvent
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more