Re-exports
pub use crate::*;
pub use crate::*;
pub use crate::*;
pub use crate::*;
pub use crate::*;
pub use crate::*;
Macros
Structs
The Context stores all UI state. A user of the library shouldn’t have to interact with it directly.
ViewID
is a unique identifier for a view. We’re using a u64 and hashing
under the assumption there won’t be collsions. The underlying u64 is a function
of the path down the view tree.
Enums
Constants
Traits
Reads or writes a value owned by a source-of-truth.
Trait for the unit of UI composition.
Functions
Canvas for GPU drawing with VGER. See https://github.com/audulus/vger-rs. Note that canvases cannot be hit tested and thus gestures cannot be attached.
Renders a circle which expands to fill available space.
Specifies a menu command.
Switches between views according to a boolean.
Horizontal slider built from other Views.
Horizontal stack of up to 8 Views in a tuple. Each item can be a different view type.
Displays a list of items all of which are represented by the same View. See examples/list.rs
.
Renders a rectangle which expands to fill available space.
Call this function to describe your UI.
State allows you to associate some state with a view. This is what you’ll use for a data model, as well as per-view state. Your state should be efficiently clonable. Use Rc as necessary.
Shows a string as a label (not editable).
Horizontal slider built from other Views.
Vertical stack of up to 8 Views in a tuple. Each item can be a different view type.
Stack of up to 8 overlaid Views in a tuple. Each item can be a different view type.