summaryrefslogtreecommitdiff
path: root/src/layout/text.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-03-12 14:12:30 +0100
committerLaurenz <laurmaedje@gmail.com>2021-03-12 14:12:30 +0100
commit584a43277dbfbdba834a2681afe63d10598db3f9 (patch)
tree2a7b8d1f6b41fa39996c907d8d582b4c52448fcd /src/layout/text.rs
parentffcb8cd97a7107bfd66805b1073c5ef3e0dd59a7 (diff)
Rename ChildAlign to LayoutAligns ✏
Diffstat (limited to 'src/layout/text.rs')
-rw-r--r--src/layout/text.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/layout/text.rs b/src/layout/text.rs
index ee85ee17..256a6e6d 100644
--- a/src/layout/text.rs
+++ b/src/layout/text.rs
@@ -9,12 +9,12 @@ use crate::shaping;
/// A text node.
#[derive(Clone, PartialEq)]
pub struct NodeText {
- /// The text.
- pub text: String,
- /// How to align this text node in its parent.
- pub align: ChildAlign,
/// The text direction.
pub dir: Dir,
+ /// How to align this text node in its parent.
+ pub aligns: LayoutAligns,
+ /// The text.
+ pub text: String,
/// The font size.
pub font_size: Length,
/// The families used for font fallback.
@@ -34,7 +34,7 @@ impl Layout for NodeText {
&self.families,
self.variant,
),
- self.align,
+ self.aligns,
)
}
}