Expand description
Standard widget library for zest.
Re-exports§
pub use widget::Image;pub use widget::arc::Arc;pub use widget::button::Button;pub use widget::calendar::Calendar;pub use widget::calendar::CalendarEvent;pub use widget::canvas::Canvas;pub use widget::canvas::CanvasBuffer;pub use widget::chart::Chart;pub use widget::checkbox::Checkbox;pub use widget::column::Column;pub use widget::container::Container;pub use widget::divider::Divider;pub use widget::divider::horizontal_divider;pub use widget::divider::vertical_divider;pub use widget::dropdown::Dropdown;pub use widget::grid::Grid;pub use widget::image_button::ImageButton;pub use widget::keyboard::KeyAction;pub use widget::keyboard::Keyboard;pub use widget::keyboard::KeyboardMode;pub use widget::led::LED;pub use widget::line::Line;pub use widget::list::List;pub use widget::list::ListRow;pub use widget::menu::Menu;pub use widget::message_box::MessageBox;pub use widget::progress_bar::ProgressBar;pub use widget::qr::EccLevel;pub use widget::qr::Qr;pub use widget::qr::QrError;pub use widget::radio::RadioButton;pub use widget::roller::Roller;pub use widget::row::Row;pub use widget::scale::Scale;pub use widget::scale::ScaleMode;pub use widget::scrollable::Scrollable;pub use widget::slider::Slider;pub use widget::space::Space;pub use widget::space::horizontal_space;pub use widget::space::vertical_space;pub use widget::span::Span;pub use widget::span::SpanGroup;pub use widget::spin_button::SpinButton;pub use widget::spin_button::SpinOrientation;pub use widget::spinner::Spinner;pub use widget::stack::Stack;pub use widget::switch::Switch;pub use widget::tab_bar::Tab;pub use widget::tab_bar::TabBar;pub use widget::table::Table;pub use widget::table::TableRow;pub use widget::text::Text;pub use widget::text_area::TextArea;pub use widget::tileview::Tileview;pub use widget::weather_icons::WeatherCondition;pub use widget::weather_icons::WeatherIcon;pub use widget::window::Window;
Modules§
- widget
- Concrete widgets. Standard widgets.
Structs§
- Element
- Heterogeneous boxed widget.
'ais the lifetime of any data the inner widget borrows from screen state. - Scroll
State - Cross-frame scroll/gesture/velocity state owned by the host screen.
Enums§
- Scroll
Direction - Which axes a container scrolls on.
- Scroll
Msg - Message a scrollable container emits in
handle_touch; the host applies it inupdate(). Carries the geometry (and snap lines on release) so the ownedScrollStatecan integrate without touching layout. - Scrollbar
Mode - When the scrollbar thumb is visible.
- Snap
Mode - How scrolling settles to content boundaries.
Traits§
- Into
Element - Conversion from a concrete widget into an
Element. - Widget
- Object-safe widget contract.
Functions§
- tick_
task - Self-rescheduling animation clock: a
Taskthat waits one frame (~16 ms) and then yieldsmsg, so the host’sScrollTickarm can callScrollState::tickand re-arm whileScrollState::is_animating.