euv-ui 0.35.92

Reusable UI component library for the euv framework, providing buttons, cards, modals, inputs, and more.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::*;

/// The direction a block of content is laid out in.
///
/// The reference derives the direction from the locale. A caller that
/// knows the direction states it, and everything inside the provider
/// follows: text runs the right way, icons mirror, and the writing mode
/// of the whole subtree flips with it.
#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
pub enum EuvDirection {
    /// The content reads from left to right.
    #[default]
    Ltr,
    /// The content reads from right to left.
    Rtl,
}