blob: eb63a895448bf8f05e920986de65fb9a08dbe1df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
/// Which strategy to use while laying out things.
pub enum Length {
/// Fill in remaining space. Equivalent to `Length::FlexRatio(1)`.
Flex,
/// Fill in remaining space, with the value being a ratio.
FlexRatio(u16),
/// Fill in a fixed amount of space.
Fixed(u16),
/// Let the child determine how large to make the component.
Child,
}
|