[][src]Struct core_graphics::display::CGDisplayMode

pub struct CGDisplayMode(_);

Implementations

impl CGDisplayMode[src]

pub fn all_display_modes(
    display_id: CGDirectDisplayID,
    options: CFDictionaryRef
) -> Option<Vec<CGDisplayMode>>
[src]

Returns all display modes for the specified display id.

pub fn height(&self) -> u64[src]

Returns the height of the specified display mode.

pub fn width(&self) -> u64[src]

Returns the width of the specified display mode.

pub fn pixel_height(&self) -> u64[src]

Returns the pixel height of the specified display mode.

pub fn pixel_width(&self) -> u64[src]

Returns the pixel width of the specified display mode.

pub fn refresh_rate(&self) -> f64[src]

pub fn io_flags(&self) -> u32[src]

Returns the I/O Kit flags of the specified display mode.

pub fn pixel_encoding(&self) -> CFString[src]

Returns the pixel encoding of the specified display mode.

pub fn bit_depth(&self) -> usize[src]

Returns the number of bits per pixel of the specified display mode.

Trait Implementations

impl AsRef<CGDisplayModeRef> for CGDisplayMode[src]

impl Borrow<CGDisplayModeRef> for CGDisplayMode[src]

impl Clone for CGDisplayMode[src]

impl Deref for CGDisplayMode[src]

type Target = CGDisplayModeRef

The resulting type after dereferencing.

impl DerefMut for CGDisplayMode[src]

impl Drop for CGDisplayMode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.