Struct core_graphics::display::CGDisplayMode
source · pub struct CGDisplayMode(_);
Implementations
sourceimpl CGDisplayMode
impl CGDisplayMode
sourcepub fn all_display_modes(
display_id: CGDirectDisplayID,
options: CFDictionaryRef
) -> Option<Vec<CGDisplayMode>>
pub fn all_display_modes(
display_id: CGDirectDisplayID,
options: CFDictionaryRef
) -> Option<Vec<CGDisplayMode>>
Returns all display modes for the specified display id.
sourcepub fn pixel_height(&self) -> u64
pub fn pixel_height(&self) -> u64
Returns the pixel height of the specified display mode.
sourcepub fn pixel_width(&self) -> u64
pub fn pixel_width(&self) -> u64
Returns the pixel width of the specified display mode.
pub fn refresh_rate(&self) -> f64
sourcepub fn pixel_encoding(&self) -> CFString
pub fn pixel_encoding(&self) -> CFString
Returns the pixel encoding of the specified display mode.
Trait Implementations
sourceimpl AsRef<CGDisplayModeRef> for CGDisplayMode
impl AsRef<CGDisplayModeRef> for CGDisplayMode
sourcefn as_ref(&self) -> &CGDisplayModeRef
fn as_ref(&self) -> &CGDisplayModeRef
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Borrow<CGDisplayModeRef> for CGDisplayMode
impl Borrow<CGDisplayModeRef> for CGDisplayMode
sourcefn borrow(&self) -> &CGDisplayModeRef
fn borrow(&self) -> &CGDisplayModeRef
Immutably borrows from an owned value. Read more
sourceimpl Clone for CGDisplayMode
impl Clone for CGDisplayMode
sourcefn clone(&self) -> CGDisplayMode
fn clone(&self) -> CGDisplayMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Deref for CGDisplayMode
impl Deref for CGDisplayMode
type Target = CGDisplayModeRef
type Target = CGDisplayModeRef
The resulting type after dereferencing.
sourcefn deref(&self) -> &CGDisplayModeRef
fn deref(&self) -> &CGDisplayModeRef
Dereferences the value.
sourceimpl DerefMut for CGDisplayMode
impl DerefMut for CGDisplayMode
sourcefn deref_mut(&mut self) -> &mut CGDisplayModeRef
fn deref_mut(&mut self) -> &mut CGDisplayModeRef
Mutably dereferences the value.
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more