Expand description
Shows an app’s windows from templates and keeps them in step with its state.
Each dynamic part of a template records which state it reads. After every event the
engine updates only the widgets whose state changed, and rebuilds regions in place when
the state deciding their contents changed. The Logic gives everything its values,
so the interpreter and compiled apps share this engine.
Re-exports§
pub use template::AppTemplate;pub use template::Logic;pub use template::MenuBar;pub use template::Shown;pub use template::Template;pub use template::Templates;pub use template::Widget;pub use template::WindowAction;pub use template::WindowRequest;pub use template::WindowTemplate;
Modules§
- template 🔒
- What an app’s windows are made of, and the
Logicthat gives their dynamic parts their values. - windows 🔒
- The app’s windows: which are open, building a window’s content when it opens, and closing it when code or the user asks.
Structs§
- Engine
- A running app: its logic, its windows, and what each widget shows.
- Template
Ref 🔒 - A template and the list holding it, so mounted UI can re-read it later.
Enums§
- Mounted 🔒
Functions§
- next 🔒
- The next position in
parent, advancingoffsetpast it. - send 🔒
- Runs
eventas one event ofengine, if the app is still running. Handlers hold their engine weakly, since the engine owns the widgets that own them.