shuyi_ui/widgets.rs
1//! Reusable pieces screens are built from: a [`menu`], the [`ListCursor`]
2//! that moves its focus (and any other list's), a question over the screen
3//! ([`Ask`]), a name typed or spelled on a letter grid
4//! ([`name_entry`]) and [`word_wrap`] for text boxes. Each widget says what it
5//! shows as plain data (a view) and a skin paints it (`menu::glyph` and
6//! `ask::glyph` for glyphs).
7
8pub mod ask;
9pub mod list;
10pub mod menu;
11pub mod name_entry;
12
13pub use ask::{AnswerView, Ask, AskView};
14pub use list::{ListCursor, Scroll};
15pub use menu::{Menu, MenuEvent, MenuItem, MenuItemView, MenuView};
16pub use name_entry::{NameBox, NameEntry, NameEvent, NameRules};
17pub use shuyi_assets::text::word_wrap;