gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 684HTML 640Markdown 12TOML 62290 Definiciones

⎇ 3de41935b1054f945bfaeb40dfc213cd57366b9b benches/generated/flex_basis_unconstraint_row.rs Rust · 18 líneas · 621 B Historia Quién tocó qué crudo

update tests and benchmarks to use new api 1f8c44154 · Emil Sjölander ·

1pub fn compute() -> stretch::result::Layout {
2    stretch::node::Node::new(
3        stretch::style::Style { ..Default::default() },
4        vec![&stretch::node::Node::new(
5            stretch::style::Style {
6                flex_basis: stretch::style::Dimension::Points(50f32),
7                size: stretch::geometry::Size {
8                    height: stretch::style::Dimension::Points(100f32),
9                    ..Default::default()
10                },
11                ..Default::default()
12            },
13            vec![],
14        )],
15    )
16    .compute_layout(stretch::geometry::Size::undefined())
17    .unwrap()
18}