Expand description
Basic application-window API.
Start here if you are building a normal Wayland client window.
This module is documentation-first: it re-exports the common entry points
that most applications need so cargo doc presents a smaller and more
approachable surface before the user gets into overlays, gestures, and
shell-specific features.
The default path is:
- implement
App - return an
Elementtree fromApp::view - mutate state in
App::update - start the event loop with
run
If you are looking for layer-shell, overlays, or advanced runtime hooks,
move on to crate::shell or crate::runtime.
Re-exports§
pub use crate::App;pub use crate::ButtonVariant;pub use crate::Color;pub use crate::Element;pub use crate::Point;pub use crate::Rect;pub use crate::Size;pub use crate::Column;pub use crate::Row;pub use crate::Stack;pub use crate::WrapGrid;pub use crate::Spacer;pub use crate::button;pub use crate::button;pub use crate::icon_button;pub use crate::text;pub use crate::text;pub use crate::text_edit;pub use crate::text_edit;pub use crate::img_widget;pub use crate::img_widget;pub use crate::container;pub use crate::container;pub use crate::checkbox;pub use crate::radio;pub use crate::toggle;pub use crate::separator;pub use crate::progress_bar;pub use crate::list_item;pub use crate::slider;pub use crate::vslider;pub use crate::scroll;pub use crate::viewport;pub use crate::column;pub use crate::row;pub use crate::stack;pub use crate::grid;pub use crate::spacer;pub use crate::TextAlign;pub use crate::SliderAxis;pub use crate::run;
Structs§
- The keyboard symbol, often corresponding to a character.