rcus-core 0.2.0

Core types for rcus: retained view tree, style, input, and the host bridge protocol
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# rcus-core

Core types for [rcus](https://crates.io/crates/rcus): the retained view tree, the
JSON view spec that script produces, style and geometry, input events, actions,
and the host bridge protocol.

```rust
use rcus_core::{Color, Insets, Style, ViewNode};

let root = ViewNode::element(
    "panel",
    Style::default().background(Color::rgba(0.1, 0.1, 0.12, 1.0)),
    vec![ViewNode::text("hello", Style::default())],
);
```

Part of the rcus workspace. See the root README for the whole stack.