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