summaryrefslogtreecommitdiff
path: root/src/layout/text.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-08-02 16:31:34 +0200
committerLaurenz <laurmaedje@gmail.com>2020-08-02 16:31:34 +0200
commit533374db14087ac54fdc86afa5f009487ac1b850 (patch)
tree0970eb1ca893fe45369d622b5bc1f226f0f66004 /src/layout/text.rs
parent2188ef6b899cc10c84ed985e9ad9049fcc3eb662 (diff)
Refactor argument parsing 🔬
Diffstat (limited to 'src/layout/text.rs')
-rw-r--r--src/layout/text.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/layout/text.rs b/src/layout/text.rs
index 30995be0..6698a0fa 100644
--- a/src/layout/text.rs
+++ b/src/layout/text.rs
@@ -34,7 +34,7 @@ pub struct TextContext<'a> {
/// primary-horizontal layouting is supported.
pub axes: LayoutAxes,
/// The alignment of the finished layout.
- pub alignment: LayoutAlignment,
+ pub align: LayoutAlign,
}
/// Layouts text into a box.
@@ -75,7 +75,7 @@ impl<'a> TextLayouter<'a> {
Layout {
dimensions: Size::new(self.width, self.ctx.style.font_size()),
- alignment: self.ctx.alignment,
+ align: self.ctx.align,
actions: self.actions.into_vec(),
}
}