1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
mod label;
pub use self::label::Label;
mod macros;
pub mod prelude {
#[doc(hidden)]
pub use crate::{
u_label,
Label,
TextAlignment,
};
}
pub const THEME_CLASS_NAME: &str = "u_label_theme_class";
#[doc(hidden)]
#[cfg(target_arch = "wasm32")]
mod implz {
extern crate wasm_bindgen;
extern crate web_sys;
mod wasm_label;
pub use self::wasm_label::WasmLabel as Platform;
}
#[doc(hidden)]
#[cfg(target_os = "linux")]
mod implz {
uniui_gui::desktop_qt! {
mod qt5_label;
pub use self::qt5_label::Qt5Label as Platform;
}
uniui_gui::desktop_noop! {
mod noop_label;
pub use self::noop_label::NoopLabel as Platform;
}
}
#[doc(hidden)]
#[cfg(target_os = "android")]
extern crate uni_tmp_jni as jni;
#[doc(hidden)]
#[cfg(target_os = "android")]
mod implz {
mod android_label;
pub use self::android_label::AndroidLabel as Platform;
}
#[derive(Debug, Copy, Clone)]
pub enum TextAlignment {
Center,
Start,
End,
}