Skip to main content

goes_second

Function goes_second 

Source
fn goes_second(at: Option<(f64, f64)>, rect: Rect, axis: Axis) -> bool
Expand description

Whether a window added to rect across axis takes the second child: the half the pointer is in, and the far side by default.

One answer for Tiling::split, which does it, and Tiling::room_in, which has to measure the split it will be.