mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 11:46:41 +01:00
view: expose scene iterator types
This commit is contained in:
parent
cdeb355972
commit
ed926b9444
1 changed files with 6 additions and 2 deletions
|
|
@ -571,9 +571,13 @@ impl<'a> ArrangerView<'a> {
|
|||
|
||||
}
|
||||
|
||||
trait ScenesColors<'a> = Iterator<Item=SceneWithColor<'a>>;
|
||||
/// Iterator over scenes with their sizes and colors.
|
||||
pub(crate) trait ScenesColors<'a> =
|
||||
Iterator<Item=SceneWithColor<'a>>;
|
||||
|
||||
type SceneWithColor<'a> = (usize, &'a Scene, usize, usize, Option<ItemTheme>);
|
||||
/// A scene with size and color.
|
||||
pub(crate) type SceneWithColor<'a> =
|
||||
(usize, &'a Scene, usize, usize, Option<ItemTheme>);
|
||||
|
||||
/// Define a type alias for iterators of sized items (columns).
|
||||
macro_rules! def_sizes_iter {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue