⎇ d67e82255da07928c7e415ea7364529d204bbaf9
benches/generated/align_items_stretch.rs
Ñawpa willay
Pi imata llamkarqan
ch'uya
1pub fn compute() {
2 let mut stretch = stretch2::Stretch::new();
3 let node0 = stretch
4 .new_node(
5 stretch2::style::Style {
6 size: stretch2::geometry::Size {
7 width: stretch2::style::Dimension::Points(10f32),
8 ..Default::default()
9 },
10 ..Default::default()
11 },
12 &[],
13 )
14 .unwrap();
15 let node = stretch
16 .new_node(
17 stretch2::style::Style {
18 size: stretch2::geometry::Size {
19 width: stretch2::style::Dimension::Points(100f32),
20 height: stretch2::style::Dimension::Points(100f32),
21 ..Default::default()
22 },
23 ..Default::default()
24 },
25 &[node0],
26 )
27 .unwrap();
28 stretch.compute_layout(node, stretch2::geometry::Size::undefined()).unwrap();
29}