⎇ bd6e1961c57e46cffc98b74abcc126b3264aa0dd
benches/generated/justify_content_column_min_height_and_margin_bottom.rs
Historia
Quién tocó qué
crudo
update tests and benchmarks to use new api
1pub fn compute() -> stretch::result::Layout {
2 stretch::node::Node::new(
3 stretch::style::Style {
4 flex_direction: stretch::style::FlexDirection::Column,
5 justify_content: stretch::style::JustifyContent::Center,
6 min_size: stretch::geometry::Size {
7 height: stretch::style::Dimension::Points(50f32),
8 ..Default::default()
9 },
10 ..Default::default()
11 },
12 vec![&stretch::node::Node::new(
13 stretch::style::Style {
14 size: stretch::geometry::Size {
15 width: stretch::style::Dimension::Points(20f32),
16 height: stretch::style::Dimension::Points(20f32),
17 ..Default::default()
18 },
19 margin: stretch::geometry::Rect {
20 bottom: stretch::style::Dimension::Points(10f32),
21 ..Default::default()
22 },
23 ..Default::default()
24 },
25 vec![],
26 )],
27 )
28 .compute_layout(stretch::geometry::Size::undefined())
29 .unwrap()
30}