[−][src]Struct core_graphics::display::CGDisplayMode
Implementations
impl CGDisplayMode
[src]
pub fn all_display_modes(
display_id: CGDirectDisplayID,
options: CFDictionaryRef
) -> Option<Vec<CGDisplayMode>>
[src]
display_id: CGDirectDisplayID,
options: CFDictionaryRef
) -> Option<Vec<CGDisplayMode>>
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]
fn as_ref(&self) -> &CGDisplayModeRef
[src]
impl Borrow<CGDisplayModeRef> for CGDisplayMode
[src]
fn borrow(&self) -> &CGDisplayModeRef
[src]
impl Clone for CGDisplayMode
[src]
fn clone(&self) -> CGDisplayMode
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Deref for CGDisplayMode
[src]
type Target = CGDisplayModeRef
The resulting type after dereferencing.
fn deref(&self) -> &CGDisplayModeRef
[src]
impl DerefMut for CGDisplayMode
[src]
fn deref_mut(&mut self) -> &mut CGDisplayModeRef
[src]
impl Drop for CGDisplayMode
[src]
Auto Trait Implementations
impl RefUnwindSafe for CGDisplayMode
impl !Send for CGDisplayMode
impl !Sync for CGDisplayMode
impl Unpin for CGDisplayMode
impl UnwindSafe for CGDisplayMode
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,