pub struct PointerSample {
pub pointer_id: Option<u32>,
pub phase: Option<EventPhase>,
pub position_in_viewport: Option<[f32; 2]>,
pub scroll_v: Option<i64>,
pub scroll_h: Option<i64>,
pub pressed_buttons: Option<Vec<u8>>,
pub relative_motion: Option<[f32; 2]>,
pub scroll_v_physical_pixel: Option<f64>,
pub scroll_h_physical_pixel: Option<f64>,
pub is_precision_scroll: Option<bool>,
}Expand description
A description of each sampled data point for a pointer device.
Fields§
§pointer_id: Option<u32>§phase: Option<EventPhase>§position_in_viewport: Option<[f32; 2]>§scroll_v: Option<i64>§scroll_h: Option<i64>§relative_motion: Option<[f32; 2]>§scroll_v_physical_pixel: Option<f64>§scroll_h_physical_pixel: Option<f64>§is_precision_scroll: Option<bool>Trait Implementations§
Source§impl Clone for PointerSample
impl Clone for PointerSample
Source§fn clone(&self) -> PointerSample
fn clone(&self) -> PointerSample
Returns a duplicate 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 PointerSample
impl Debug for PointerSample
Source§impl Default for PointerSample
impl Default for PointerSample
Source§fn default() -> PointerSample
fn default() -> PointerSample
Returns the “default value” for a type. Read more
Source§impl<'a, ___E> Encode<PointerSample<'static>, ___E> for &'a PointerSamplewhere
___E: Encoder + ?Sized,
impl<'a, ___E> Encode<PointerSample<'static>, ___E> for &'a PointerSamplewhere
___E: Encoder + ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<PointerSample<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<PointerSample<'static>>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<___E> Encode<PointerSample<'static>, ___E> for PointerSamplewhere
___E: Encoder + ?Sized,
impl<___E> Encode<PointerSample<'static>, ___E> for PointerSamplewhere
___E: Encoder + ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<PointerSample<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<PointerSample<'static>>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<'de> FromWire<PointerSample<'de>> for PointerSample
impl<'de> FromWire<PointerSample<'de>> for PointerSample
Source§fn from_wire(wire_: PointerSample<'de>) -> Self
fn from_wire(wire_: PointerSample<'de>) -> Self
Converts the given owned value to this type.
§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl<'de> FromWireRef<PointerSample<'de>> for PointerSample
impl<'de> FromWireRef<PointerSample<'de>> for PointerSample
Source§fn from_wire_ref(wire: &PointerSample<'de>) -> Self
fn from_wire_ref(wire: &PointerSample<'de>) -> Self
Converts the given reference to this type.
Source§impl PartialEq for PointerSample
impl PartialEq for PointerSample
Source§impl PartialOrd for PointerSample
impl PartialOrd for PointerSample
impl StructuralPartialEq for PointerSample
Auto Trait Implementations§
impl Freeze for PointerSample
impl RefUnwindSafe for PointerSample
impl Send for PointerSample
impl Sync for PointerSample
impl Unpin for PointerSample
impl UnsafeUnpin for PointerSample
impl UnwindSafe for PointerSample
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,
§impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: Box<'_, W>) -> Option<T>
fn from_wire_option(wire: Box<'_, W>) -> Option<T>
Converts the given owned value to an option of this type.
§impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
§fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
Converts the given reference to an option of this type.
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]