diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-08-02 16:31:34 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-08-02 16:31:34 +0200 |
| commit | 533374db14087ac54fdc86afa5f009487ac1b850 (patch) | |
| tree | 0970eb1ca893fe45369d622b5bc1f226f0f66004 /src/layout/text.rs | |
| parent | 2188ef6b899cc10c84ed985e9ad9049fcc3eb662 (diff) | |
Refactor argument parsing 🔬
Diffstat (limited to 'src/layout/text.rs')
| -rw-r--r-- | src/layout/text.rs | 4 |
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(), } } |
