forked from linebender/druid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmod.rs
119 lines (115 loc) · 3.41 KB
/
mod.rs
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
// Copyright 2018 The Druid Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//! Common widgets.
mod align;
////mod button;
////mod checkbox;
////mod click;
mod common;
////mod container;
////mod controller;
////mod either;
////mod env_scope;
mod flex;
////mod identity_wrapper;
////mod image;
////mod invalidation;
mod label;
////mod list;
mod padding;
////mod painter;
////mod parse;
////mod progress_bar;
////mod radio;
////mod scroll;
mod sized_box;
////mod slider;
////mod spinner;
////mod split;
////mod stepper;
#[cfg(feature = "svg")]
#[cfg_attr(docsrs, doc(cfg(feature = "svg")))]
mod svg;
////mod switch;
////mod textbox;
////mod view_switcher;
#[allow(clippy::module_inception)]
mod widget;
////mod widget_ext;
mod boxed_widget; ////
////pub use self::image::{Image, ImageData};
pub use align::Align;
////pub use button::Button;
////pub use checkbox::Checkbox;
////pub use click::Click;
pub use common::FillStrat;
////pub use container::Container;
////pub use controller::{Controller, ControllerHost};
////pub use either::Either;
////pub use env_scope::EnvScope;
pub use flex::{CrossAxisAlignment, Flex, FlexParams, MainAxisAlignment};
pub use flex::Spacer; ////
////pub use identity_wrapper::IdentityWrapper;
pub use label::{Label, LabelText};
////pub use list::{List, ListIter};
pub use padding::Padding;
////pub use painter::{BackgroundBrush, Painter};
////pub use parse::Parse;
////pub use progress_bar::ProgressBar;
////pub use radio::{Radio, RadioGroup};
////pub use scroll::Scroll;
pub use sized_box::SizedBox;
////pub use slider::Slider;
////pub use spinner::Spinner;
////pub use split::Split;
////pub use stepper::Stepper;
#[cfg(feature = "svg")]
pub use svg::{Svg, SvgData};
////pub use switch::Switch;
////pub use textbox::TextBox;
////pub use view_switcher::ViewSwitcher;
#[doc(hidden)]
pub use widget::{Widget, WidgetId};
#[doc(hidden)]
////pub use widget_ext::WidgetExt;
pub use boxed_widget::{BoxedWidget, MAX_WIDGETS, StaticWidgets, WidgetType}; ////
/// The types required to implement a `Widget`.
///
/// # Structs
/// [`BoxConstraints`](../../struct.BoxConstraints.html)\
/// [`Env`](../../struct.Env.html)\
/// [`EventCtx`](../../struct.EventCtx.html)\
/// [`LayoutCtx`](../../struct.LayoutCtx.html)\
/// [`LifeCycleCtx`](../../struct.LifeCycleCtx.html)\
/// [`PaintCtx`](../../struct.PaintCtx.html)\
/// [`Size`](../../struct.Size.html)\
/// [`UpdateCtx`](../../struct.UpdateCtx.html)\
/// [`WidgetId`](../../struct.WidgetId.html)\
///
/// # Enums
/// [`Event`](../../enum.Event.html)\
/// [`LifeCycle`](../../enum.LifeCycle.html)\
///
/// # Traits
/// [`RenderContext`](../../trait.RenderContext.html)\
/// [`Widget`](../../trait.Widget.html)
// NOTE: \ at the end works as a line break, but skip on last line!
pub mod prelude {
#[doc(hidden)]
pub use crate::{
BoxConstraints, Env, Event, EventCtx, LayoutCtx, LifeCycle, LifeCycleCtx, PaintCtx,
////RenderContext,
Size, UpdateCtx, Widget, WidgetId,
};
}