#[repr(C)]pub struct CGDisplayMode { /* private fields */ }
Available on crate feature
CGDirectDisplay
only.Expand description
Implementations§
Source§impl CGDisplayMode
impl CGDisplayMode
pub unsafe fn width(mode: Option<&CGDisplayMode>) -> usize
pub unsafe fn height(mode: Option<&CGDisplayMode>) -> usize
pub unsafe fn pixel_encoding( mode: Option<&CGDisplayMode>, ) -> Option<CFRetained<CFString>>
👎Deprecated: No longer supported
pub unsafe fn refresh_rate(mode: Option<&CGDisplayMode>) -> c_double
pub unsafe fn io_flags(mode: Option<&CGDisplayMode>) -> u32
pub unsafe fn io_display_mode_id(mode: Option<&CGDisplayMode>) -> i32
pub unsafe fn is_usable_for_desktop_gui(mode: Option<&CGDisplayMode>) -> bool
Source§impl CGDisplayMode
impl CGDisplayMode
pub unsafe fn pixel_width(mode: Option<&CGDisplayMode>) -> usize
pub unsafe fn pixel_height(mode: Option<&CGDisplayMode>) -> usize
Methods from Deref<Target = CFType>§
Sourcepub fn downcast_ref<T>(&self) -> Option<&T>where
T: ConcreteType,
pub fn downcast_ref<T>(&self) -> Option<&T>where
T: ConcreteType,
Attempt to downcast the type to that of type T
.
This is the reference-variant. Use CFRetained::downcast
if you
want to convert a retained type. See also ConcreteType
for more
details on which types support being converted to.
Sourcepub fn retain_count(&self) -> usize
pub fn retain_count(&self) -> usize
Get the reference count of the object.
This function may be useful for debugging. You normally do not use this function otherwise.
Beware that some things (like CFNumber
s, small CFString
s etc.) may
not have a normal retain count for optimization purposes, and can
return usize::MAX
in that case.
Trait Implementations§
Source§impl AsRef<AnyObject> for CGDisplayMode
impl AsRef<AnyObject> for CGDisplayMode
Source§impl AsRef<CFType> for CGDisplayMode
impl AsRef<CFType> for CGDisplayMode
Source§impl AsRef<CGDisplayMode> for CGDisplayMode
impl AsRef<CGDisplayMode> for CGDisplayMode
Source§impl Borrow<AnyObject> for CGDisplayMode
impl Borrow<AnyObject> for CGDisplayMode
Source§impl Borrow<CFType> for CGDisplayMode
impl Borrow<CFType> for CGDisplayMode
Source§impl ConcreteType for CGDisplayMode
impl ConcreteType for CGDisplayMode
Source§impl Debug for CGDisplayMode
impl Debug for CGDisplayMode
Source§impl Deref for CGDisplayMode
impl Deref for CGDisplayMode
Source§impl Hash for CGDisplayMode
impl Hash for CGDisplayMode
Source§impl Message for CGDisplayMode
impl Message for CGDisplayMode
Source§impl PartialEq for CGDisplayMode
impl PartialEq for CGDisplayMode
Source§impl RefEncode for CGDisplayMode
impl RefEncode for CGDisplayMode
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
Source§impl Type for CGDisplayMode
impl Type for CGDisplayMode
Source§fn retain(&self) -> CFRetained<Self>where
Self: Sized,
fn retain(&self) -> CFRetained<Self>where
Self: Sized,
Increment the reference count of the receiver. Read more
Source§fn as_concrete_TypeRef(&self) -> &Self
fn as_concrete_TypeRef(&self) -> &Self
👎Deprecated: this is redundant
Helper for easier transition from the
core-foundation
crate.Source§unsafe fn wrap_under_get_rule(ptr: *const Self) -> CFRetained<Self>where
Self: Sized,
unsafe fn wrap_under_get_rule(ptr: *const Self) -> CFRetained<Self>where
Self: Sized,
👎Deprecated: use CFRetained::retain
Helper for easier transition from the
core-foundation
crate. Read moreSource§fn as_CFTypeRef(&self) -> &CFType
fn as_CFTypeRef(&self) -> &CFType
👎Deprecated: this is redundant (CF types deref to CFType)
Helper for easier transition from the
core-foundation
crate.Source§unsafe fn wrap_under_create_rule(ptr: *const Self) -> CFRetained<Self>where
Self: Sized,
unsafe fn wrap_under_create_rule(ptr: *const Self) -> CFRetained<Self>where
Self: Sized,
👎Deprecated: use CFRetained::from_raw
Helper for easier transition from the
core-foundation
crate. Read moreimpl Eq for CGDisplayMode
Auto Trait Implementations§
impl !Freeze for CGDisplayMode
impl !RefUnwindSafe for CGDisplayMode
impl !Send for CGDisplayMode
impl !Sync for CGDisplayMode
impl !Unpin for CGDisplayMode
impl !UnwindSafe for CGDisplayMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more