/// Fired when the window is resized.
pub struct Resized {
    /// The window's current physical width.
    pub width: u32,

    /// The window's current physical height.
    pub height: u32,
}

impl Resized {
    /// Initializes [`self`] with a width and height.
    #[inline]
    pub const fn from_size(width: u32, height: u32) -> Self {
        Self { height, width }
    }
}
