wip: the new new arranger

This commit is contained in:
🪞👃🪞 2025-01-07 19:48:30 +01:00
parent 0b365e05c8
commit 0ee3059cf8
5 changed files with 142 additions and 73 deletions

View file

@ -5,9 +5,7 @@ pub fn map_south<O: Output>(
item_height: O::Unit,
item: impl Content<O>
) -> impl Content<O> {
Push::y(item_offset,
Align::n(Fixed::y(item_height,
Fill::x(item))))
Push::y(item_offset, Align::n(Fixed::y(item_height, Fill::x(item))))
}
pub fn map_east<O: Output>(
@ -15,9 +13,7 @@ pub fn map_east<O: Output>(
item_width: O::Unit,
item: impl Content<O>
) -> impl Content<O> {
Push::x(item_offset,
Align::w(Fixed::y(item_width,
Fill::y(item))))
Push::x(item_offset, Align::w(Fixed::x(item_width, Fill::y(item))))
}
pub struct Map<'a, A, B, I, F, G>(pub PhantomData<&'a()>, pub F, pub G) where