anathema_runtime/
lib.rs

1// -----------------------------------------------------------------------------
2//   - Runtime -
3//   1. Creating the initial widget tree
4//   2. Runtime loop >----------------------------------------+
5//    ^  2.1. Wait for messages                               |
6//    |  2.2. Wait for events                                 v
7//    |  2.4. Was there events / messages / data changes? (no) (yes)
8//    |                                                    |    |
9//    +----------------------------------------------------+    |
10//    |       +-------------------------------------------------+
11//    |       |
12//    |       V
13//    |       1. Layout
14//    |       2. Position
15//    |       3. Draw
16//    +-----< 4. Run again
17//
18// -----------------------------------------------------------------------------
19
20use std::sync::atomic::AtomicBool;
21
22pub use crate::builder::Builder;
23pub use crate::error::{Error, Result};
24pub use crate::runtime::{Frame, Runtime};
25
26static REBUILD: AtomicBool = AtomicBool::new(false);
27
28mod error;
29
30pub mod builder;
31mod events;
32pub mod runtime;