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.
Trait Implementations§
Auto Trait Implementations§
impl<'video> !RefUnwindSafe for Display<'video>
impl<'video> !Send for Display<'video>
impl<'video> !Sync for Display<'video>
impl<'video> Unpin for Display<'video>
impl<'video> !UnwindSafe for Display<'video>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more