⎇ 3de41935b1054f945bfaeb40dfc213cd57366b9b
benches/generated/absolute_layout_no_size.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 size: stretch::geometry::Size {
5 width: stretch::style::Dimension::Points(100f32),
6 height: stretch::style::Dimension::Points(100f32),
7 ..Default::default()
8 },
9 ..Default::default()
10 },
11 vec![&stretch::node::Node::new(
12 stretch::style::Style { position_type: stretch::style::PositionType::Absolute, ..Default::default() },
13 vec![],
14 )],
15 )
16 .compute_layout(stretch::geometry::Size::undefined())
17 .unwrap()
18}