Cascada
Cascada is a lightweight, high-performance UI layout engine.
Features
- Microsecond layout performance
- Declarative syntax
- Predictable layouts
- Descriptive error handling
Usage
Add this to your Cargo.toml.
[]
= "0.2.0"
Example
use ;
let child = new
.intrinsic_size;
// Add three equally sized child nodes.
let mut layout = new
.intrinsic_size
.add_child
.add_child
.add_child;
solve_layout;
let children = layout.children;
assert_eq!;
assert_eq!;
assert_eq!;
Implementation details
Cascada was originally agape_layout which I made for agape, but I forked it because over time it started to feel like more of a standalone crate.
License
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.