⎇ edd994fd39750e366114cf4d5a66f7092a97edfa
benches/generated/justify_content_row_flex_end.rs
History
Who touched what
raw
1pub fn compute() {
2 let mut stretch = stretch::Stretch::new();
3 let node0 = stretch
4 .new_node(
5 stretch::style::Style {
6 size: stretch::geometry::Size { width: stretch::style::Dimension::Points(10f32), ..Default::default() },
7 ..Default::default()
8 },
9 vec![],
10 )
11 .unwrap();
12 let node1 = stretch
13 .new_node(
14 stretch::style::Style {
15 size: stretch::geometry::Size { width: stretch::style::Dimension::Points(10f32), ..Default::default() },
16 ..Default::default()
17 },
18 vec![],
19 )
20 .unwrap();
21 let node2 = stretch
22 .new_node(
23 stretch::style::Style {
24 size: stretch::geometry::Size { width: stretch::style::Dimension::Points(10f32), ..Default::default() },
25 ..Default::default()
26 },
27 vec![],
28 )
29 .unwrap();
30 let node = stretch
31 .new_node(
32 stretch::style::Style {
33 justify_content: stretch::style::JustifyContent::FlexEnd,
34 size: stretch::geometry::Size {
35 width: stretch::style::Dimension::Points(100f32),
36 height: stretch::style::Dimension::Points(100f32),
37 ..Default::default()
38 },
39 ..Default::default()
40 },
41 vec![node0, node1, node2],
42 )
43 .unwrap();
44 stretch.compute_layout(node, stretch::geometry::Size::undefined()).unwrap();
45}