1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use serde::{Serialize, Deserialize};

/// Insets along each edge of a rectangle.
#[derive(Debug, Clone, Copy, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Insets {
    pub top: f64,
    pub leading: f64,
    pub bottom: f64,
    pub trailing: f64,
}

impl Default for Insets {
    fn default() -> Self {
        Insets {
            top: 10.0,
            leading: 10.0,
            bottom: 10.0,
            trailing: 10.0,
        }
    }
}