bdf2/
bounding_box.rs

1/// The bounds of a glyph.
2#[derive(PartialEq, Eq, Clone, Copy, Debug)]
3pub struct BoundingBox {
4    ///
5    pub width: u32,
6
7    ///
8    pub height: u32,
9
10    ///
11    pub x: i32,
12
13    ///
14    pub y: i32,
15}
16
17impl Default for BoundingBox {
18    #[inline]
19    fn default() -> Self {
20        BoundingBox {
21            width: 0,
22            height: 0,
23
24            x: 0,
25            y: 0,
26        }
27    }
28}