Struct glutin::monitor::VideoMode [−][src]
pub struct VideoMode { /* fields omitted */ }
Expand description
Implementations
Returns the resolution of this video mode.
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: Always returns 32.
- iOS: Always returns 32.
Returns the refresh rate of this video mode. Note: the returned refresh rate is an integer approximation, and you shouldn’t rely on this value to be exact.
Returns the monitor that this video mode is valid for. Each monitor has a separate set of valid video modes.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl !RefUnwindSafe for VideoMode
impl !UnwindSafe for VideoMode
Blanket Implementations
Mutably borrows from an owned value. Read more