1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/// Two-bit field mask for packed 4-variant layout enums inside `LayoutStyle::flags`.
pub const LAYOUT_FLAG_MASK_2: u32 = 0x3;
/// Three-bit field mask for packed 8-variant layout enums inside `LayoutStyle::flags`.
pub const LAYOUT_FLAG_MASK_3: u32 = 0x7;
/// Bit shift of `Display` inside `LayoutStyle::flags`.
pub const LAYOUT_DISPLAY_SHIFT: u32 = 0;
/// Bit shift of `Position` inside `LayoutStyle::flags`.
pub const LAYOUT_POSITION_SHIFT: u32 = 2;
/// Bit shift of `FlexDirection` inside `LayoutStyle::flags`.
pub const LAYOUT_FLEX_DIR_SHIFT: u32 = 4;
/// Bit shift of `FlexWrap` inside `LayoutStyle::flags`.
pub const LAYOUT_FLEX_WRAP_SHIFT: u32 = 6;
/// Bit shift of `JustifyContent` inside `LayoutStyle::flags`.
pub const LAYOUT_JUSTIFY_SHIFT: u32 = 8;
/// Bit shift of `AlignItems` inside `LayoutStyle::flags`.
pub const LAYOUT_ALIGN_ITEMS_SHIFT: u32 = 11;
/// Bit shift of `AlignSelf` inside `LayoutStyle::flags`.
pub const LAYOUT_ALIGN_SELF_SHIFT: u32 = 14;
/// Bit shift of `Overflow` inside `LayoutStyle::flags`.
pub const LAYOUT_OVERFLOW_SHIFT: u32 = 17;
/// Bit width of each packed `Length` unit tag inside `LayoutStyle::length_tags`.
pub const LENGTH_TAG_BITS: u32 = 3;
/// Three-bit mask extracting one `Length` unit tag from `LayoutStyle::length_tags`.
pub const LENGTH_TAG_MASK: u32 = 0x7;
/// Packed `Length` slot index for `flex_basis`.
pub const LENGTH_SLOT_FLEX_BASIS: usize = 0;
/// Packed `Length` slot index for `width`.
pub const LENGTH_SLOT_WIDTH: usize = 1;
/// Packed `Length` slot index for `height`.
pub const LENGTH_SLOT_HEIGHT: usize = 2;
/// Packed `Length` slot index for `min_width`.
pub const LENGTH_SLOT_MIN_WIDTH: usize = 3;
/// Packed `Length` slot index for `min_height`.
pub const LENGTH_SLOT_MIN_HEIGHT: usize = 4;
/// Packed `Length` slot index for `max_width`.
pub const LENGTH_SLOT_MAX_WIDTH: usize = 5;
/// Packed `Length` slot index for `max_height`.
pub const LENGTH_SLOT_MAX_HEIGHT: usize = 6;