pub struct SimulateScroll {
pub x: u32,
pub y: u32,
pub delta_x: f32,
pub delta_y: f32,
}Expand description
Scroll delta from the host mouse/trackpad. Position is in physical pixels; deltas are f32 scroll amounts (pixels).
Fields§
§x: u32§y: u32§delta_x: f32§delta_y: f32Trait Implementations§
Source§impl Debug for SimulateScroll
impl Debug for SimulateScroll
Source§impl FromScalar<4> for SimulateScroll
impl FromScalar<4> for SimulateScroll
fn from_scalar([x, y, dx, dy]: [u32; 4]) -> Self
Source§impl MessageId for SimulateScroll
impl MessageId for SimulateScroll
Source§impl Scalar for SimulateScroll
impl Scalar for SimulateScroll
fn to_message(&self) -> ScalarMessagewhere
Self: Sized,
Auto Trait Implementations§
impl Freeze for SimulateScroll
impl RefUnwindSafe for SimulateScroll
impl Send for SimulateScroll
impl Sync for SimulateScroll
impl Unpin for SimulateScroll
impl UnwindSafe for SimulateScroll
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.