pub struct PaneDragBehaviorTuning {
pub activation_threshold: u16,
pub update_hysteresis: u16,
pub snap: PaneSnapTuning,
}Expand description
Combined drag behavior tuning constants.
Fields§
§activation_threshold: u16§update_hysteresis: u16§snap: PaneSnapTuningImplementations§
Source§impl PaneDragBehaviorTuning
impl PaneDragBehaviorTuning
pub fn new( activation_threshold: u16, update_hysteresis: u16, snap: PaneSnapTuning, ) -> Result<Self, PaneInteractionPolicyError>
pub fn should_start_drag( self, origin: PanePointerPosition, current: PanePointerPosition, ) -> bool
pub fn should_emit_drag_update( self, previous: PanePointerPosition, current: PanePointerPosition, ) -> bool
Trait Implementations§
Source§impl Clone for PaneDragBehaviorTuning
impl Clone for PaneDragBehaviorTuning
Source§fn clone(&self) -> PaneDragBehaviorTuning
fn clone(&self) -> PaneDragBehaviorTuning
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 PaneDragBehaviorTuning
impl Debug for PaneDragBehaviorTuning
Source§impl Default for PaneDragBehaviorTuning
impl Default for PaneDragBehaviorTuning
Source§impl<'de> Deserialize<'de> for PaneDragBehaviorTuning
impl<'de> Deserialize<'de> for PaneDragBehaviorTuning
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 PaneDragBehaviorTuning
impl PartialEq for PaneDragBehaviorTuning
Source§impl Serialize for PaneDragBehaviorTuning
impl Serialize for PaneDragBehaviorTuning
impl Copy for PaneDragBehaviorTuning
impl Eq for PaneDragBehaviorTuning
impl StructuralPartialEq for PaneDragBehaviorTuning
Auto Trait Implementations§
impl Freeze for PaneDragBehaviorTuning
impl RefUnwindSafe for PaneDragBehaviorTuning
impl Send for PaneDragBehaviorTuning
impl Sync for PaneDragBehaviorTuning
impl Unpin for PaneDragBehaviorTuning
impl UnsafeUnpin for PaneDragBehaviorTuning
impl UnwindSafe for PaneDragBehaviorTuning
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