rcus-core 0.1.5

Core types for rcus: retained view tree, style, input, and the host bridge protocol
Documentation

rcus-core

Core types for rcus: the retained view tree, the JSON view spec that script produces, style and geometry, input events, actions, and the host bridge protocol.

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.