pub type VideoMode = VideoModeHandle;
👎Deprecated: Renamed to
VideoModeHandle
Expand description
Deprecated! Use VideoModeHandle
instead.
Aliased Type§
struct VideoMode { /* private fields */ }
Implementations
Source§impl VideoModeHandle
impl VideoModeHandle
Sourcepub fn size(&self) -> PhysicalSize<u32>
pub fn size(&self) -> PhysicalSize<u32>
Returns the resolution of this video mode.
Sourcepub fn bit_depth(&self) -> u16
pub fn bit_depth(&self) -> u16
Returns the bit depth of this video mode, as in how many bits you have available per color. This is generally 24 bits or 32 bits on modern systems, depending on whether the alpha channel is counted or not.
§Platform-specific
- Wayland / Orbital: Always returns 32.
- iOS: Always returns 32.
Sourcepub fn refresh_rate_millihertz(&self) -> u32
pub fn refresh_rate_millihertz(&self) -> u32
Returns the refresh rate of this video mode in mHz.
Sourcepub fn monitor(&self) -> MonitorHandle
pub fn monitor(&self) -> MonitorHandle
Returns the monitor that this video mode is valid for. Each monitor has a separate set of valid video modes.
Trait Implementations
Source§impl Clone for VideoModeHandle
impl Clone for VideoModeHandle
Source§fn clone(&self) -> VideoModeHandle
fn clone(&self) -> VideoModeHandle
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for VideoModeHandle
impl Debug for VideoModeHandle
Source§impl Display for VideoModeHandle
impl Display for VideoModeHandle
Source§impl Hash for VideoModeHandle
impl Hash for VideoModeHandle
Source§impl Ord for VideoModeHandle
impl Ord for VideoModeHandle
Source§fn cmp(&self, other: &VideoModeHandle) -> Ordering
fn cmp(&self, other: &VideoModeHandle) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more