euv_core/style/layout_prop/
struct.rs1use super::*;
2
3#[derive(Clone, Copy, Data, Debug, PartialEq)]
5pub struct LayoutStyle {
6 #[get(type(copy))]
8 pub(crate) display: Display,
9 #[get(type(copy))]
11 pub(crate) position: Position,
12 #[get(type(copy))]
14 pub(crate) flex_direction: FlexDirection,
15 #[get(type(copy))]
17 pub(crate) flex_wrap: FlexWrap,
18 #[get(type(copy))]
20 pub(crate) justify_content: JustifyContent,
21 #[get(type(copy))]
23 pub(crate) align_items: AlignItems,
24 #[get(type(copy))]
26 pub(crate) align_self: AlignSelf,
27 #[get(type(copy))]
29 pub(crate) overflow: Overflow,
30 #[get(type(copy))]
32 pub(crate) flex_grow: f32,
33 #[get(type(copy))]
35 pub(crate) flex_shrink: f32,
36 #[get(type(copy))]
38 pub(crate) flex_basis: Length,
39 #[get(type(copy))]
41 pub(crate) grid_columns: u16,
42 #[get(type(copy))]
44 pub(crate) width: Length,
45 #[get(type(copy))]
47 pub(crate) height: Length,
48 #[get(type(copy))]
50 pub(crate) min_width: Length,
51 #[get(type(copy))]
53 pub(crate) min_height: Length,
54 #[get(type(copy))]
56 pub(crate) max_width: Length,
57 #[get(type(copy))]
59 pub(crate) max_height: Length,
60 #[get(type(copy))]
62 pub(crate) margin: Edges,
63 #[get(type(copy))]
65 pub(crate) padding: Edges,
66 #[get(type(copy))]
68 pub(crate) row_gap: f32,
69 #[get(type(copy))]
71 pub(crate) column_gap: f32,
72 #[get(skip)]
74 pub(crate) top: Option<f32>,
75 #[get(skip)]
77 pub(crate) right: Option<f32>,
78 #[get(skip)]
80 pub(crate) bottom: Option<f32>,
81 #[get(skip)]
83 pub(crate) left: Option<f32>,
84 #[get(type(copy))]
86 pub(crate) z_index: i32,
87 #[get(skip)]
89 pub(crate) aspect_ratio: Option<f32>,
90}