Skip to main content

DragConfig

Trait DragConfig 

Source
pub trait DragConfig {
    type Element;

    // Required method
    fn nudge(&mut self, element: Self::Element, dx: f32, dy: f32) -> NudgeResult;
}
Expand description

State that owns position changes. Existing Cartesian callers use Config; bounded chart decorations use their own SSOT without duplicating hit/drag policy.

Required Associated Types§

Required Methods§

Source

fn nudge(&mut self, element: Self::Element, dx: f32, dy: f32) -> NudgeResult

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§