Skip to main content

hit_visuals

Function hit_visuals 

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

The visual among those accept takes that the pointer is over: of those visuals_under it, the one its Pointer::cycle names.