pub struct NodeGraphPanInertiaTuning {
pub enabled: bool,
pub decay_per_s: f32,
pub min_speed: f32,
pub max_speed: f32,
}Expand description
Momentum configuration for canvas panning.
Fields§
§enabled: boolEnables inertial panning after releasing the pan gesture.
decay_per_s: f32Exponential damping factor applied to velocity (1 / seconds).
min_speed: f32Minimum screen speed (px/s) required to keep inertia running.
max_speed: f32Maximum screen speed (px/s) at inertia start (clamp).
Trait Implementations§
Source§impl Clone for NodeGraphPanInertiaTuning
impl Clone for NodeGraphPanInertiaTuning
Source§fn clone(&self) -> NodeGraphPanInertiaTuning
fn clone(&self) -> NodeGraphPanInertiaTuning
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 NodeGraphPanInertiaTuning
impl Debug for NodeGraphPanInertiaTuning
Source§impl Default for NodeGraphPanInertiaTuning
impl Default for NodeGraphPanInertiaTuning
Source§impl<'de> Deserialize<'de> for NodeGraphPanInertiaTuning
impl<'de> Deserialize<'de> for NodeGraphPanInertiaTuning
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 NodeGraphPanInertiaTuning
impl PartialEq for NodeGraphPanInertiaTuning
Source§fn eq(&self, other: &NodeGraphPanInertiaTuning) -> bool
fn eq(&self, other: &NodeGraphPanInertiaTuning) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NodeGraphPanInertiaTuning
Auto Trait Implementations§
impl Freeze for NodeGraphPanInertiaTuning
impl RefUnwindSafe for NodeGraphPanInertiaTuning
impl Send for NodeGraphPanInertiaTuning
impl Sync for NodeGraphPanInertiaTuning
impl Unpin for NodeGraphPanInertiaTuning
impl UnsafeUnpin for NodeGraphPanInertiaTuning
impl UnwindSafe for NodeGraphPanInertiaTuning
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