Struct zng_view_api::window::VideoMode
source · pub struct VideoMode {
pub size: PxSize,
pub bit_depth: u16,
pub refresh_rate: u32,
}Expand description
Exclusive video mode info.
You can get the options for a monitor using MonitorInfo::video_modes.
Note that actual system video mode is selected by approximation,
closest size, then bit_depth, then refresh_rate.
Fields§
§size: PxSizeResolution of this video mode.
bit_depth: u16The bit depth of this video mode. This is generally 24 bits or 32 bits on modern systems, depending on whether the alpha channel is counted or not.
refresh_rate: u32The refresh rate of this video mode, in millihertz.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for VideoMode
impl<'de> Deserialize<'de> for VideoMode
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for VideoMode
impl PartialEq for VideoMode
impl Copy for VideoMode
impl Eq for VideoMode
impl StructuralPartialEq for VideoMode
Auto Trait Implementations§
impl Freeze for VideoMode
impl RefUnwindSafe for VideoMode
impl Send for VideoMode
impl Sync for VideoMode
impl Unpin for VideoMode
impl UnwindSafe for VideoMode
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