module runningsource
The app: a window, a device and its surface, a canvas, and the loop turning the window's events into the Ui's input and its changes into frames; worker tasks running the Ui's background work, and a task for what a package serves beside them (pkg::alloy::ui_app's requests), which wake the loop when done.
type Appsource
exp type App = struct
Fields
exp ui: Uiexp wall: Option<i64>a replay's wall clock when its script's time is 0; None reads the system's
Functions
fn App::createsource
exp fn App::create(
view: |=| (&var Ui) -> Element,
backend: Backend,
workers: Option<&Workers>
) -> App
fn finishsource
exp fn finish(self workers: &Workers, done: |=| (&var Ui))
Gives the loop what finished work gives, and wakes it.
fn replay_appsource
exp fn replay_app(
config: &WindowConfig,
options: ReplayConfig,
view: |=| (&var Ui) -> Element,
events: &[Event]
) -> Replayed
fn on_app_eventsource
exp fn on_app_event(app: &var App, window: &var Window, event: &Event)