euv_ui/component/direction/view/enum.rs
1use super::*;
2
3/// The direction a block of content is laid out in.
4///
5/// The reference derives the direction from the locale. A caller that
6/// knows the direction states it, and everything inside the provider
7/// follows: text runs the right way, icons mirror, and the writing mode
8/// of the whole subtree flips with it.
9#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
10pub enum EuvDirection {
11 /// The content reads from left to right.
12 #[default]
13 Ltr,
14 /// The content reads from right to left.
15 Rtl,
16}