Skip to main content

draw_refused_conflict

Function draw_refused_conflict 

Source
pub fn draw_refused_conflict(
    overlap: Rect,
    painter: &mut Style<'_, impl Renderer>,
)
Expand description

A conflict a move would create, hatched over the cells the two shapes would share. Only the overlaps that refuse the move are drawn: on a group move an overlap the selection already had refuses nothing, and marking it would claim a refusal that is not happening.

The overlap rather than either shape, because a collision is a relation — and a destination can conflict with several shapes at once, which an outline round the mover could not tell apart.