pub struct PointerSessionClaimInput {
pub target: PointerSessionTarget,
pub screen_delta: CanvasPoint,
pub context: ViewportGestureContext,
}Expand description
Input for resolving which high-level runtime session should claim a pointer drag.
Fields§
§target: PointerSessionTarget§screen_delta: CanvasPoint§context: ViewportGestureContextImplementations§
Source§impl PointerSessionClaimInput
impl PointerSessionClaimInput
pub fn new( target: PointerSessionTarget, screen_delta: CanvasPoint, context: ViewportGestureContext, ) -> Self
Trait Implementations§
Source§impl Clone for PointerSessionClaimInput
impl Clone for PointerSessionClaimInput
Source§fn clone(&self) -> PointerSessionClaimInput
fn clone(&self) -> PointerSessionClaimInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PointerSessionClaimInput
Source§impl Debug for PointerSessionClaimInput
impl Debug for PointerSessionClaimInput
Source§impl<'de> Deserialize<'de> for PointerSessionClaimInput
impl<'de> Deserialize<'de> for PointerSessionClaimInput
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 PartialEq for PointerSessionClaimInput
impl PartialEq for PointerSessionClaimInput
Source§fn eq(&self, other: &PointerSessionClaimInput) -> bool
fn eq(&self, other: &PointerSessionClaimInput) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PointerSessionClaimInput
impl Serialize for PointerSessionClaimInput
impl StructuralPartialEq for PointerSessionClaimInput
Auto Trait Implementations§
impl Freeze for PointerSessionClaimInput
impl RefUnwindSafe for PointerSessionClaimInput
impl Send for PointerSessionClaimInput
impl Sync for PointerSessionClaimInput
impl Unpin for PointerSessionClaimInput
impl UnsafeUnpin for PointerSessionClaimInput
impl UnwindSafe for PointerSessionClaimInput
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