Skip to main content

DragAtFn

Type Alias DragAtFn 

Source
pub type DragAtFn<Msg> = Arc<dyn Fn(DragPhase, f32, f32, f32, f32) -> Option<Msg> + Send + Sync>;
Expand description

Variante de DragFn que conoce la posición inicial del press relativa al rect del nodo. Útil cuando el caller necesita identificar qué entidad (Concepto, lemming, etc.) bajo el cursor agarró el drag. Recibe (phase, dx, dy, initial_lx, initial_ly).

Aliased Type§

pub struct DragAtFn<Msg> { /* private fields */ }