pub struct ViewportPanInertiaRequest {
pub current: ViewportTransform,
pub initial_velocity_screen: CanvasPoint,
pub tuning: NodeGraphPanInertiaTuning,
}Expand description
Request to plan inertial panning from an adapter-provided release velocity.
Fields§
§current: ViewportTransform§initial_velocity_screen: CanvasPointInitial pan velocity in logical screen pixels per second.
tuning: NodeGraphPanInertiaTuningImplementations§
Source§impl ViewportPanInertiaRequest
impl ViewportPanInertiaRequest
pub fn new( current: ViewportTransform, initial_velocity_screen: CanvasPoint, tuning: NodeGraphPanInertiaTuning, ) -> Self
Trait Implementations§
Source§impl Clone for ViewportPanInertiaRequest
impl Clone for ViewportPanInertiaRequest
Source§fn clone(&self) -> ViewportPanInertiaRequest
fn clone(&self) -> ViewportPanInertiaRequest
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 moreSource§impl Debug for ViewportPanInertiaRequest
impl Debug for ViewportPanInertiaRequest
Source§impl<'de> Deserialize<'de> for ViewportPanInertiaRequest
impl<'de> Deserialize<'de> for ViewportPanInertiaRequest
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 ViewportPanInertiaRequest
impl PartialEq for ViewportPanInertiaRequest
Source§fn eq(&self, other: &ViewportPanInertiaRequest) -> bool
fn eq(&self, other: &ViewportPanInertiaRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ViewportPanInertiaRequest
Auto Trait Implementations§
impl Freeze for ViewportPanInertiaRequest
impl RefUnwindSafe for ViewportPanInertiaRequest
impl Send for ViewportPanInertiaRequest
impl Sync for ViewportPanInertiaRequest
impl Unpin for ViewportPanInertiaRequest
impl UnsafeUnpin for ViewportPanInertiaRequest
impl UnwindSafe for ViewportPanInertiaRequest
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