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
62
63
#![cfg_attr(feature = "nightly", feature(type_alias_impl_trait))]
#![allow(clippy::type_complexity)]
#![allow(clippy::too_many_arguments)]
pub mod animation;
pub mod ctx;
pub mod dom;
pub mod plugin;
pub mod widgets;
pub mod childable;
pub mod insertable;
pub mod lens;
pub mod observer;
mod input;
mod runtime;
pub mod tutorial;
pub mod prelude {
use super::*;
pub use animation::{TransitionBundle, TransitionProgress, TweenExt};
pub use childable::{
tracked::{IndexObserver, TrackedItemLens, TrackedMarker, TrackedObserverExt, TrackedVec},
ChildMapExt, Childable,
};
pub use ctx::{Ctx, McCtx, WidgetBuilderExtWith, WidgetBuilderExtWithModified};
pub use dom::layout::{layout_components::*, Units};
pub use dom::{Focused, HideOverflow, TextAlign, TextDetails, TextSize};
pub use lens::WorldLens;
pub use observer::{component, res, single, FlattenReturn, IntoObserver, ObserverExt};
pub use plugin::{Ui4Plugin, Ui4Root};
pub use widgets::button::{OnClick, OnHover, OnRelease, OnUnhover};
pub type ObsReturn<'a, T, M, O> =
<<O as IntoObserver<T, M>>::ReturnSpec as observer::ReturnSpec<'a, T>>::R;
pub use widgets::{
button, checkbox, draggable_window, dropdown, progressbar, radio_button, slider, text,
text_fade, textbox,
};
pub use std::borrow::Borrow;
pub use ui4_macros::Lens;
}
#[doc(hidden)]
pub struct Static;
#[doc(hidden)]
pub struct Dynamic;
#[doc(hidden)]
pub struct OptionalDynamic;