pub struct SerializedPointerData { /* private fields */ }
Expand description
A serialized version of PointerData
Trait Implementations§
Source§impl Clone for SerializedPointerData
impl Clone for SerializedPointerData
Source§fn clone(&self) -> SerializedPointerData
fn clone(&self) -> SerializedPointerData
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 SerializedPointerData
impl Debug for SerializedPointerData
Source§impl<'de> Deserialize<'de> for SerializedPointerData
impl<'de> Deserialize<'de> for SerializedPointerData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&PointerData> for SerializedPointerData
impl From<&PointerData> for SerializedPointerData
Source§fn from(data: &PointerData) -> Self
fn from(data: &PointerData) -> Self
Converts to this type from the input type.
Source§impl HasPointerData for SerializedPointerData
impl HasPointerData for SerializedPointerData
Source§fn pointer_id(&self) -> i32
fn pointer_id(&self) -> i32
Gets the unique identifier of the pointer causing the event.
Source§fn width(&self) -> i32
fn width(&self) -> i32
Gets the width (magnitude on the X axis), in CSS pixels, of the contact geometry of the pointer.
Source§fn height(&self) -> i32
fn height(&self) -> i32
Gets the height (magnitude on the Y axis), in CSS pixels, of the contact geometry of the pointer.
Source§fn pressure(&self) -> f32
fn pressure(&self) -> f32
Gets the normalized pressure of the pointer input in the range of 0 to 1,
Source§fn tangential_pressure(&self) -> f32
fn tangential_pressure(&self) -> f32
Gets the normalized tangential pressure of the pointer input (also known as barrel pressure or cylinder stress) in the range -1 to 1,
Source§fn tilt_x(&self) -> i32
fn tilt_x(&self) -> i32
Gets the plane angle (in degrees, in the range of -90 to 90) between the Y-Z plane and the plane containing both the transducer (e.g. pen stylus) axis and the Y axis.
Source§fn tilt_y(&self) -> i32
fn tilt_y(&self) -> i32
Gets the plane angle (in degrees, in the range of -90 to 90) between the X-Z plane and the plane containing both the transducer (e.g. pen stylus) axis and the X axis.
Source§fn twist(&self) -> i32
fn twist(&self) -> i32
Gets the clockwise rotation of the pointer (e.g. pen stylus) around its major axis in degrees, with a value in the range 0 to 359.The clockwise rotation of the pointer (e.g. pen stylus) around its major axis in degrees, with a value in the range 0 to 359.
Source§fn pointer_type(&self) -> String
fn pointer_type(&self) -> String
Gets the device type that caused the event (mouse, pen, touch, etc.).
Source§fn is_primary(&self) -> bool
fn is_primary(&self) -> bool
Gets if the pointer represents the primary pointer of this pointer type.
Source§impl InteractionElementOffset for SerializedPointerData
impl InteractionElementOffset for SerializedPointerData
Source§fn element_coordinates(&self) -> ElementPoint
fn element_coordinates(&self) -> ElementPoint
Gets the coordinates of the event relative to the target element.
Source§fn coordinates(&self) -> Coordinates
fn coordinates(&self) -> Coordinates
Gets the coordinates of the event.
Source§impl InteractionLocation for SerializedPointerData
impl InteractionLocation for SerializedPointerData
Source§fn client_coordinates(&self) -> ClientPoint
fn client_coordinates(&self) -> ClientPoint
Gets the coordinates of the event relative to the browser viewport.
Source§fn screen_coordinates(&self) -> ScreenPoint
fn screen_coordinates(&self) -> ScreenPoint
Gets the coordinates of the event relative to the screen.
Source§fn page_coordinates(&self) -> PagePoint
fn page_coordinates(&self) -> PagePoint
Gets the coordinates of the event relative to the page.
Source§impl PartialEq for SerializedPointerData
impl PartialEq for SerializedPointerData
Source§impl PointerInteraction for SerializedPointerData
impl PointerInteraction for SerializedPointerData
Gets the buttons that are currently held down.
Gets the button that triggered the event.
Source§impl Serialize for SerializedPointerData
impl Serialize for SerializedPointerData
impl StructuralPartialEq for SerializedPointerData
Auto Trait Implementations§
impl Freeze for SerializedPointerData
impl RefUnwindSafe for SerializedPointerData
impl Send for SerializedPointerData
impl Sync for SerializedPointerData
impl Unpin for SerializedPointerData
impl UnwindSafe for SerializedPointerData
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.