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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
pub use iced_native::widget::helpers::*;
pub use iced_native::{column, row};
pub type Column<'a, Message, Renderer = crate::Renderer> =
iced_native::widget::Column<'a, Message, Renderer>;
pub type Row<'a, Message, Renderer = crate::Renderer> =
iced_native::widget::Row<'a, Message, Renderer>;
pub mod text {
pub use iced_native::widget::text::{Appearance, StyleSheet};
pub type Text<'a, Renderer = crate::Renderer> =
iced_native::widget::Text<'a, Renderer>;
}
pub mod button {
pub use iced_native::widget::button::{Appearance, StyleSheet};
pub type Button<'a, Message, Renderer = crate::Renderer> =
iced_native::widget::Button<'a, Message, Renderer>;
}
pub mod checkbox {
pub use iced_native::widget::checkbox::{Appearance, StyleSheet};
pub type Checkbox<'a, Message, Renderer = crate::Renderer> =
iced_native::widget::Checkbox<'a, Message, Renderer>;
}
pub mod container {
pub use iced_native::widget::container::{Appearance, StyleSheet};
pub type Container<'a, Message, Renderer = crate::Renderer> =
iced_native::widget::Container<'a, Message, Renderer>;
}
pub mod pane_grid {
pub use iced_native::widget::pane_grid::{
Axis, Configuration, Direction, DragEvent, Line, Node, Pane,
ResizeEvent, Split, State, StyleSheet,
};
pub type PaneGrid<'a, Message, Renderer = crate::Renderer> =
iced_native::widget::PaneGrid<'a, Message, Renderer>;
pub type Content<'a, Message, Renderer = crate::Renderer> =
iced_native::widget::pane_grid::Content<'a, Message, Renderer>;
pub type TitleBar<'a, Message, Renderer = crate::Renderer> =
iced_native::widget::pane_grid::TitleBar<'a, Message, Renderer>;
}
pub mod pick_list {
pub use iced_native::widget::pick_list::{Appearance, StyleSheet};
pub type PickList<'a, T, Message, Renderer = crate::Renderer> =
iced_native::widget::PickList<'a, T, Message, Renderer>;
}
pub mod radio {
pub use iced_native::widget::radio::{Appearance, StyleSheet};
pub type Radio<Message, Renderer = crate::Renderer> =
iced_native::widget::Radio<Message, Renderer>;
}
pub mod scrollable {
pub use iced_native::widget::scrollable::{
snap_to, style::Scrollbar, style::Scroller, Id, StyleSheet,
};
pub type Scrollable<'a, Message, Renderer = crate::Renderer> =
iced_native::widget::Scrollable<'a, Message, Renderer>;
}
pub mod toggler {
pub use iced_native::widget::toggler::{Appearance, StyleSheet};
pub type Toggler<'a, Message, Renderer = crate::Renderer> =
iced_native::widget::Toggler<'a, Message, Renderer>;
}
pub mod text_input {
pub use iced_native::widget::text_input::{
focus, move_cursor_to, move_cursor_to_end, move_cursor_to_front,
select_all, Appearance, Id, StyleSheet,
};
pub type TextInput<'a, Message, Renderer = crate::Renderer> =
iced_native::widget::TextInput<'a, Message, Renderer>;
}
pub mod tooltip {
pub use iced_native::widget::tooltip::Position;
pub type Tooltip<'a, Message, Renderer = crate::Renderer> =
iced_native::widget::Tooltip<'a, Message, Renderer>;
}
pub use iced_native::widget::progress_bar;
pub use iced_native::widget::rule;
pub use iced_native::widget::slider;
pub use iced_native::widget::Space;
pub use button::Button;
pub use checkbox::Checkbox;
pub use container::Container;
pub use pane_grid::PaneGrid;
pub use pick_list::PickList;
pub use progress_bar::ProgressBar;
pub use radio::Radio;
pub use rule::Rule;
pub use scrollable::Scrollable;
pub use slider::Slider;
pub use text::Text;
pub use text_input::TextInput;
pub use toggler::Toggler;
pub use tooltip::Tooltip;
#[cfg(feature = "canvas")]
#[cfg_attr(docsrs, doc(cfg(feature = "canvas")))]
pub use iced_graphics::widget::canvas;
#[cfg(feature = "canvas")]
#[cfg_attr(docsrs, doc(cfg(feature = "canvas")))]
pub fn canvas<P, Message, Theme>(program: P) -> Canvas<Message, Theme, P>
where
P: canvas::Program<Message, Theme>,
{
Canvas::new(program)
}
#[cfg(feature = "image")]
#[cfg_attr(docsrs, doc(cfg(feature = "image")))]
pub mod image {
pub use iced_native::image::Handle;
pub type Image = iced_native::widget::Image<Handle>;
pub use iced_native::widget::image::viewer;
pub use viewer::Viewer;
}
#[cfg(feature = "qr_code")]
#[cfg_attr(docsrs, doc(cfg(feature = "qr_code")))]
pub use iced_graphics::widget::qr_code;
#[cfg(feature = "svg")]
#[cfg_attr(docsrs, doc(cfg(feature = "svg")))]
pub mod svg {
pub use iced_native::svg::Handle;
pub use iced_native::widget::svg::{Appearance, StyleSheet, Svg};
}
#[cfg(feature = "canvas")]
#[cfg_attr(docsrs, doc(cfg(feature = "canvas")))]
pub use canvas::Canvas;
#[cfg(feature = "image")]
#[cfg_attr(docsrs, doc(cfg(feature = "image")))]
pub use image::Image;
#[cfg(feature = "qr_code")]
#[cfg_attr(docsrs, doc(cfg(feature = "qr_code")))]
pub use qr_code::QRCode;
#[cfg(feature = "svg")]
#[cfg_attr(docsrs, doc(cfg(feature = "svg")))]
pub use svg::Svg;
use crate::Command;
use iced_native::widget::operation;
pub fn focus_previous<Message>() -> Command<Message>
where
Message: 'static,
{
Command::widget(operation::focusable::focus_previous())
}
pub fn focus_next<Message>() -> Command<Message>
where
Message: 'static,
{
Command::widget(operation::focusable::focus_next())
}