ohos-arkui-binding 0.2.0

OpenHarmony's arkui binding for rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Module type::text_alignment wrappers and related types.

use ohos_arkui_sys::*;

use ohos_enum_derive::EnumFrom;

#[derive(Debug, Clone, Copy, PartialEq, Eq, EnumFrom)]
#[config(ArkUI_TextAlignment, "ArkUI_TextAlignment_ARKUI_TEXT_ALIGNMENT_", i32)]
/// Horizontal text alignment options.
pub enum TextAlignment {
    Start = 0,
    Center,
    End,
    Justify,
}