summaryrefslogtreecommitdiffstats
path: root/core/src/align.rs
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/align.rs')
-rw-r--r--core/src/align.rs26
1 files changed, 26 insertions, 0 deletions
diff --git a/core/src/align.rs b/core/src/align.rs
index d6915086..8b571db4 100644
--- a/core/src/align.rs
+++ b/core/src/align.rs
@@ -16,3 +16,29 @@ pub enum Align {
/// Align at the end of the cross axis.
End,
}
+
+/// The horizontal alignment of some resource.
+#[derive(Debug, Clone, Copy, PartialEq, Eq)]
+pub enum HorizontalAlignment {
+ /// Align left
+ Left,
+
+ /// Horizontally centered
+ Center,
+
+ /// Align right
+ Right,
+}
+
+/// The vertical alignment of some resource.
+#[derive(Debug, Clone, Copy, PartialEq, Eq)]
+pub enum VerticalAlignment {
+ /// Align top
+ Top,
+
+ /// Vertically centered
+ Center,
+
+ /// Align bottom
+ Bottom,
+}