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!;
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.