Struct dotrix_core::window::VideoMode [−][src]
pub struct VideoMode {
pub color_depth: u16,
pub monitor_number: usize,
pub refresh_rate: u16,
pub resolution: Vec2u,
}
Expand description
Information about a video mode.
Fields
color_depth: 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.
monitor_number: usize
The monitor number that this video mode is valid for. Each monitor has a separate set of valid video modes.
refresh_rate: u16
Returns the refresh rate of this video mode.
resolution: Vec2u
Resolution in pixels.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for VideoMode
impl UnwindSafe for VideoMode
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash,
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more