1 2 3 4 5 6 7 8 9 10 11 12 13
//! Resolution for rendering (dots per inch = DPI). #[derive(Debug, Copy, Clone)] pub struct Dpi { pub x: f64, pub y: f64, } impl Dpi { pub fn new(x: f64, y: f64) -> Dpi { Dpi { x, y } } }