mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 20:26:42 +01:00
wip: the new new arranger
This commit is contained in:
parent
0b365e05c8
commit
0ee3059cf8
5 changed files with 142 additions and 73 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue