Struct ambient_guest_bridge::core::messages::WindowMouseMotion
source · pub struct WindowMouseMotion {
pub delta: Vec2,
}
Expand description
WindowMouseMotion: Sent when the window receives a mouse motion input.
Fields§
§delta: Vec2
Implementations§
source§impl WindowMouseMotion
impl WindowMouseMotion
pub fn new(delta: impl Into<Vec2>) -> WindowMouseMotion
Trait Implementations§
source§impl Clone for WindowMouseMotion
impl Clone for WindowMouseMotion
source§fn clone(&self) -> WindowMouseMotion
fn clone(&self) -> WindowMouseMotion
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 WindowMouseMotion
impl Debug for WindowMouseMotion
source§impl RuntimeMessage for WindowMouseMotion
impl RuntimeMessage for WindowMouseMotion
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 WindowMouseMotion
Auto Trait Implementations§
impl RefUnwindSafe for WindowMouseMotion
impl Send for WindowMouseMotion
impl Sync for WindowMouseMotion
impl Unpin for WindowMouseMotion
impl UnwindSafe for WindowMouseMotion
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