⎇ 3de41935b1054f945bfaeb40dfc213cd57366b9b
benches/generated/absolute_layout_in_wrap_reverse_column_container.rs
History
Who touched what
raw
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 flex_wrap: stretch::style::FlexWrap::WrapReverse,
6 size: stretch::geometry::Size {
7 width: stretch::style::Dimension::Points(100f32),
8 height: stretch::style::Dimension::Points(100f32),
9 ..Default::default()
10 },
11 ..Default::default()
12 },
13 vec![&stretch::node::Node::new(
14 stretch::style::Style {
15 position_type: stretch::style::PositionType::Absolute,
16 size: stretch::geometry::Size {
17 width: stretch::style::Dimension::Points(20f32),
18 height: stretch::style::Dimension::Points(20f32),
19 ..Default::default()
20 },
21 ..Default::default()
22 },
23 vec![],
24 )],
25 )
26 .compute_layout(stretch::geometry::Size::undefined())
27 .unwrap()
28}