Struct ambient_api_core::core::messages::WindowKeyboardInput
source · pub struct WindowKeyboardInput {
pub pressed: bool,
pub modifiers: u32,
pub keycode: Option<String>,
}
Expand description
WindowKeyboardInput: Sent when the window receives a keyboard input.
Fields§
§pressed: bool
§modifiers: u32
§keycode: Option<String>
Implementations§
Trait Implementations§
source§impl Clone for WindowKeyboardInput
impl Clone for WindowKeyboardInput
source§fn clone(&self) -> WindowKeyboardInput
fn clone(&self) -> WindowKeyboardInput
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 WindowKeyboardInput
impl Debug for WindowKeyboardInput
source§impl RuntimeMessage for WindowKeyboardInput
impl RuntimeMessage for WindowKeyboardInput
source§fn subscribe<R: CallbackReturn>(
callback: impl FnMut(Self) -> R + 'static
) -> Listener
fn subscribe<R: CallbackReturn>( callback: impl FnMut(Self) -> R + 'static ) -> Listener
Subscribes to this Message. Wrapper around self::subscribe.
impl Message for WindowKeyboardInput
Auto Trait Implementations§
impl RefUnwindSafe for WindowKeyboardInput
impl Send for WindowKeyboardInput
impl Sync for WindowKeyboardInput
impl Unpin for WindowKeyboardInput
impl UnwindSafe for WindowKeyboardInput
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