mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 20:26:42 +01:00
wip: saner rendering on arranger header
This commit is contained in:
parent
b2fb71b405
commit
0b365e05c8
6 changed files with 195 additions and 174 deletions
|
|
@ -10,6 +10,16 @@ pub fn map_south<O: Output>(
|
|||
Fill::x(item))))
|
||||
}
|
||||
|
||||
pub fn map_east<O: Output>(
|
||||
item_offset: O::Unit,
|
||||
item_width: O::Unit,
|
||||
item: impl Content<O>
|
||||
) -> impl Content<O> {
|
||||
Push::x(item_offset,
|
||||
Align::w(Fixed::y(item_width,
|
||||
Fill::y(item))))
|
||||
}
|
||||
|
||||
pub struct Map<'a, A, B, I, F, G>(pub PhantomData<&'a()>, pub F, pub G) where
|
||||
I: Iterator<Item = A> + Send + Sync,
|
||||
F: Fn() -> I + Send + Sync + 'a,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue