Function smithay::wayland::compositor::with_surface_tree_downward[][src]

pub fn with_surface_tree_downward<F1, F2, F3, T>(
    surface: &WlSurface,
    initial: T,
    filter: F1,
    processor: F2,
    post_filter: F3
) where
    F1: FnMut(&WlSurface, &SurfaceData, &T) -> TraversalAction<T>,
    F2: FnMut(&WlSurface, &SurfaceData, &T),
    F3: FnMut(&WlSurface, &SurfaceData, &T) -> bool
Expand description

Access the data of a surface tree from top to bottom

Behavior is the same as with_surface_tree_upward, but the processing is done in the reverse order, from the nearest of the screen to the deepest.

This would typically be used to find out which surface of a subsurface tree has been clicked for example.