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