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> Freeze for Display<'video>
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