pub struct MousePayload {
pub button: MouseButton,
pub action: PointerAction,
pub x: f32,
pub y: f32,
pub window_x: f32,
pub window_y: f32,
pub target_x: f32,
pub target_y: f32,
pub target_width: f32,
pub target_height: f32,
pub modifiers: KeyModifiers,
}Expand description
Raw mouse values captured during the native callback.
Fields§
§action: PointerAction§x: f32§y: f32§window_x: f32§window_y: f32§target_x: f32§target_y: f32§target_width: f32§target_height: f32§modifiers: KeyModifiersImplementations§
Source§impl MousePayload
impl MousePayload
pub fn secondary_down(self) -> bool
Trait Implementations§
Source§impl Clone for MousePayload
impl Clone for MousePayload
impl Copy for MousePayload
Source§impl Debug for MousePayload
impl Debug for MousePayload
Source§impl Default for MousePayload
impl Default for MousePayload
Source§impl From<MousePayload> for PointerPayload
impl From<MousePayload> for PointerPayload
Source§fn from(mouse: MousePayload) -> Self
fn from(mouse: MousePayload) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MousePayload
impl PartialEq for MousePayload
impl StructuralPartialEq for MousePayload
Auto Trait Implementations§
impl Freeze for MousePayload
impl RefUnwindSafe for MousePayload
impl Send for MousePayload
impl Sync for MousePayload
impl Unpin for MousePayload
impl UnsafeUnpin for MousePayload
impl UnwindSafe for MousePayload
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.