euv_core/style/length/
struct.rs1use super::*;
2
3#[derive(Clone, Copy, Data, Debug, Default, New, PartialEq)]
5pub struct Edges {
6 #[get(type(copy))]
8 pub(crate) top: f32,
9 #[get(type(copy))]
11 pub(crate) right: f32,
12 #[get(type(copy))]
14 pub(crate) bottom: f32,
15 #[get(type(copy))]
17 pub(crate) left: f32,
18}
19
20#[derive(Clone, Copy, Data, Debug, Default, New, PartialEq)]
22pub struct CornerRadius {
23 #[get(type(copy))]
25 pub(crate) top_left: f32,
26 #[get(type(copy))]
28 pub(crate) top_right: f32,
29 #[get(type(copy))]
31 pub(crate) bottom_right: f32,
32 #[get(type(copy))]
34 pub(crate) bottom_left: f32,
35}
36
37#[derive(Clone, Copy, Data, Debug, Default, New, PartialEq)]
39pub struct Point {
40 #[get(type(copy))]
42 pub(crate) x: f32,
43 #[get(type(copy))]
45 pub(crate) y: f32,
46}
47
48#[derive(Clone, Copy, Data, Debug, Default, New, PartialEq)]
50pub struct Size {
51 #[get(type(copy))]
53 pub(crate) width: f32,
54 #[get(type(copy))]
56 pub(crate) height: f32,
57}
58
59#[derive(Clone, Copy, Data, Debug, Default, New, PartialEq)]
61pub struct Rect {
62 #[get(type(copy))]
64 pub(crate) x: f32,
65 #[get(type(copy))]
67 pub(crate) y: f32,
68 #[get(type(copy))]
70 pub(crate) width: f32,
71 #[get(type(copy))]
73 pub(crate) height: f32,
74}