Skip to main content

visuals_under

Function visuals_under 

Source
pub fn visuals_under<'a>(
    visuals: &'a [Visual],
    pointer: &Pointer,
    instance: impl Fn(&str, &Pointer) -> Option<Scalar>,
    accept: impl Fn(&Visual) -> bool,
) -> Vec<VisualHit<'a>>
Expand description

The visuals among those accept takes that the pointer is over: first the one a click takes — handles and labels first, then points, curves and areas; within each, the one nearest the pointer on screen, and of those as near, the one nearest the eye: of two areas the pointer is over, the one in front — then the rest front to back along the ray. Placed parts are hit where instance says (see no_instances).