diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-10-11 13:08:27 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-10-11 13:08:27 +0200 |
| commit | f04ad0ffa5f34bb7fd97e5c94c7547f96904220c (patch) | |
| tree | 8fb4ebbcf1a24f08ded0f3fea1afe9f9bcdf6697 /src/layout/stack.rs | |
| parent | c216a4fc26c72938ddad60bc5fe4fa9e45263b30 (diff) | |
Rename LayoutItem to Layouted ✏
Diffstat (limited to 'src/layout/stack.rs')
| -rw-r--r-- | src/layout/stack.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/layout/stack.rs b/src/layout/stack.rs index 6cbe03e3..47dd93ea 100644 --- a/src/layout/stack.rs +++ b/src/layout/stack.rs @@ -36,7 +36,7 @@ impl Layout for Stack { &self, ctx: &mut LayoutContext, constraints: LayoutConstraints, - ) -> Vec<LayoutItem> { + ) -> Vec<Layouted> { let mut items = vec![]; let size = constraints.spaces[0].size; @@ -59,8 +59,8 @@ impl Layout for Stack { for item in child.layout(ctx, child_constraints).await { match item { - LayoutItem::Spacing(spacing) => space.push_spacing(spacing), - LayoutItem::Box(mut boxed, aligns) => { + Layouted::Spacing(spacing) => space.push_spacing(spacing), + Layouted::Box(mut boxed, aligns) => { let mut last = false; while let Err(back) = space.push_box(boxed, aligns) { boxed = back; @@ -68,7 +68,7 @@ impl Layout for Stack { break; } - items.push(LayoutItem::Box(space.finish(), self.aligns)); + items.push(Layouted::Box(space.finish(), self.aligns)); if i + 1 < constraints.spaces.len() { i += 1; @@ -84,7 +84,7 @@ impl Layout for Stack { } } - items.push(LayoutItem::Box(space.finish(), self.aligns)); + items.push(Layouted::Box(space.finish(), self.aligns)); items } } |
