compiles, once again.

now 616 errors downstream...
This commit is contained in:
same mf who else 2026-03-21 20:12:51 +02:00
parent eb899906f9
commit cdc513060d
8 changed files with 196 additions and 201 deletions

View file

@ -158,17 +158,19 @@ impl Split {
/// let _ = West.bsp((), ());
/// ```
pub const fn half <T: Screen> (&self, a: impl Draw<T>, b: impl Draw<T>) -> impl Draw<T> {
thunk(move|to: &mut T|{
thunk(move|to: &mut T|{
let (area_a, area_b) = to.xywh().split_half(self);
let (origin_a, origin_b) = self.origins();
let a = origin_a.align(a);
let b = origin_b.align(b);
match self {
Self::Below => {
to.place(&origin_b.align(b), Some(area_b));
to.place(&origin_a.align(a), Some(area_b));
to.place(&b, Some(area_b));
to.place(&a, Some(area_b));
},
_ => {
to.place(&origin_a.align(a), Some(area_a));
to.place(&origin_b.align(b), Some(area_a));
to.place(&a, Some(area_a));
to.place(&b, Some(area_a));
}
}
Ok(to.xywh()) // FIXME: compute and return actually used area