Struct winit::monitor::VideoMode [−][src]
pub struct VideoMode { /* fields omitted */ }
Expand description
Implementations
impl VideoMode
[src]
impl VideoMode
[src]pub fn size(&self) -> PhysicalSize<u32>
[src]
pub fn size(&self) -> PhysicalSize<u32>
[src]Returns the resolution of this video mode.
pub fn bit_depth(&self) -> u16
[src]
pub fn bit_depth(&self) -> u16
[src]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.
pub fn refresh_rate(&self) -> u16
[src]
pub fn refresh_rate(&self) -> u16
[src]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.
pub fn monitor(&self) -> MonitorHandle
[src]
pub fn monitor(&self) -> MonitorHandle
[src]Returns the monitor that this video mode is valid for. Each monitor has a separate set of valid video modes.
Trait Implementations
impl Ord for VideoMode
[src]
impl Ord for VideoMode
[src]impl PartialOrd<VideoMode> for VideoMode
[src]
impl PartialOrd<VideoMode> for VideoMode
[src]fn partial_cmp(&self, other: &VideoMode) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &VideoMode) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Eq for VideoMode
[src]
impl StructuralEq for VideoMode
[src]
impl StructuralPartialEq for VideoMode
[src]
Auto Trait Implementations
impl !RefUnwindSafe for VideoMode
impl Send for VideoMode
impl Sync for VideoMode
impl Unpin for VideoMode
impl !UnwindSafe for VideoMode
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more