⎇ b4aa21f2f9d7fedcdaec168c9637cc4e0e14a708
benches/generated/margin_right.rs
Ñawpa willay
Pi imata llamkarqan
ch'uya
update tests and benchmarks to use new api
1pub fn compute() -> stretch::result::Layout {
2 stretch::node::Node::new(
3 stretch::style::Style {
4 justify_content: stretch::style::JustifyContent::FlexEnd,
5 size: stretch::geometry::Size {
6 width: stretch::style::Dimension::Points(100f32),
7 height: stretch::style::Dimension::Points(100f32),
8 ..Default::default()
9 },
10 ..Default::default()
11 },
12 vec![&stretch::node::Node::new(
13 stretch::style::Style {
14 size: stretch::geometry::Size { width: stretch::style::Dimension::Points(10f32), ..Default::default() },
15 margin: stretch::geometry::Rect { end: stretch::style::Dimension::Points(10f32), ..Default::default() },
16 ..Default::default()
17 },
18 vec![],
19 )],
20 )
21 .compute_layout(stretch::geometry::Size::undefined())
22 .unwrap()
23}