Skip to main content

selection_world_bounds

Function selection_world_bounds 

Source
pub fn selection_world_bounds(
    sel: &Deletable,
    data: &Drawing<'_>,
    painter: &Style<'_, impl Renderer>,
) -> Option<Rect>
Expand description

The world-space bounding box of whatever sel covers, or None if it can’t be resolved. Used to place the selection overlay relative to the selection.