Skip to main content

Crate zest_widget

Crate zest_widget 

Source
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::spin_button::horizontal_spin_button;
pub use widget::spin_button::vertical_spin_button;
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. 'a is the lifetime of any data the inner widget borrows from screen state.
ScrollState
Cross-frame scroll/gesture/velocity state owned by the host screen.

Enums§

ScrollDirection
Which axes a container scrolls on.
ScrollMsg
Message a scrollable container emits in handle_touch; the host applies it in update(). Carries the geometry (and snap lines on release) so the owned ScrollState can integrate without touching layout.
ScrollbarMode
When the scrollbar thumb is visible.
SnapMode
How scrolling settles to content boundaries.

Traits§

IntoElement
Conversion from a concrete widget into an Element.
Widget
Object-safe widget contract.

Functions§

tick_task
Self-rescheduling animation clock: a Task that waits one frame (~16 ms) and then yields msg, so the host’s ScrollTick arm can call ScrollState::tick and re-arm while ScrollState::is_animating.