pub struct DisplayMode { /* private fields */ }
Expand description
Represents a mode on a specific display.
A display mode describes a supported display resolution and refresh rate.
Implementations
sourceimpl DisplayMode
impl DisplayMode
sourcepub fn visible_region(&self) -> [u32; 2]
pub fn visible_region(&self) -> [u32; 2]
Returns the dimensions of the region that is visible on the monitor.
sourcepub fn refresh_rate(&self) -> u32
pub fn refresh_rate(&self) -> u32
Returns the refresh rate of this mode.
The returned value is multiplied by 1000. As such the value is in terms of millihertz (mHz). For example, a 60Hz display mode would have a refresh rate of 60,000 mHz.
Trait Implementations
sourceimpl Display for DisplayMode
impl Display for DisplayMode
sourceimpl VulkanObject for DisplayMode
impl VulkanObject for DisplayMode
type Object = DisplayModeKHR
type Object = DisplayModeKHR
The type of the object.
sourcefn internal_object(&self) -> DisplayModeKHR
fn internal_object(&self) -> DisplayModeKHR
Returns a reference to the object.
Auto Trait Implementations
impl RefUnwindSafe for DisplayMode
impl !Send for DisplayMode
impl !Sync for DisplayMode
impl Unpin for DisplayMode
impl UnwindSafe for DisplayMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more