Struct rich_sdl2_rust::display::Display
source · pub struct Display<'video> { /* private fields */ }
Expand description
A display queries bounds, name, dpi and modes.
Implementations§
source§impl<'video> Display<'video>
impl<'video> Display<'video>
sourcepub fn usable_bounds(&self) -> Option<Rect>
pub fn usable_bounds(&self) -> Option<Rect>
Returns the usable bounds of the display if available.
sourcepub fn current_mode(&self) -> Mode
pub fn current_mode(&self) -> Mode
Returns the current mode of the display.
sourcepub fn original_mode(&self) -> Mode
pub fn original_mode(&self) -> Mode
Returns the original mode of the display.