#[repr(C)]pub struct CGImageSource { /* private fields */ }
Available on crate feature
CGImageSource
only.Expand description
Implementations§
Source§impl CGImageSource
impl CGImageSource
pub unsafe fn type_identifiers() -> CFRetained<CFArray>
pub unsafe fn with_data_provider( provider: &CGDataProvider, options: Option<&CFDictionary>, ) -> Option<CFRetained<CGImageSource>>
Available on crate feature
objc2-core-graphics
only.pub unsafe fn with_data( data: &CFData, options: Option<&CFDictionary>, ) -> Option<CFRetained<CGImageSource>>
pub unsafe fn with_url( url: &CFURL, options: Option<&CFDictionary>, ) -> Option<CFRetained<CGImageSource>>
pub unsafe fn type(self: &CGImageSource) -> Option<CFRetained<CFString>>
pub unsafe fn count(self: &CGImageSource) -> usize
pub unsafe fn properties( self: &CGImageSource, options: Option<&CFDictionary>, ) -> Option<CFRetained<CFDictionary>>
pub unsafe fn properties_at_index( self: &CGImageSource, index: usize, options: Option<&CFDictionary>, ) -> Option<CFRetained<CFDictionary>>
pub unsafe fn metadata_at_index( self: &CGImageSource, index: usize, options: Option<&CFDictionary>, ) -> Option<CFRetained<CGImageMetadata>>
Available on crate feature
CGImageMetadata
only.pub unsafe fn image_at_index( self: &CGImageSource, index: usize, options: Option<&CFDictionary>, ) -> Option<CFRetained<CGImage>>
Available on crate feature
objc2-core-graphics
only.pub unsafe fn remove_cache_at_index(self: &CGImageSource, index: usize)
pub unsafe fn thumbnail_at_index( self: &CGImageSource, index: usize, options: Option<&CFDictionary>, ) -> Option<CFRetained<CGImage>>
Available on crate feature
objc2-core-graphics
only.pub unsafe fn new_incremental( options: Option<&CFDictionary>, ) -> CFRetained<CGImageSource>
pub unsafe fn update_data(self: &CGImageSource, data: &CFData, final: bool)
pub unsafe fn update_data_provider( self: &CGImageSource, provider: &CGDataProvider, final: bool, )
Available on crate feature
objc2-core-graphics
only.pub unsafe fn status(self: &CGImageSource) -> CGImageSourceStatus
pub unsafe fn status_at_index( self: &CGImageSource, index: usize, ) -> CGImageSourceStatus
pub unsafe fn primary_image_index(self: &CGImageSource) -> usize
pub unsafe fn auxiliary_data_info_at_index( self: &CGImageSource, index: usize, auxiliary_image_data_type: &CFString, ) -> Option<CFRetained<CFDictionary>>
Source§impl CGImageSource
impl CGImageSource
pub unsafe fn set_allowable_types(allowable_types: &CFArray) -> i32
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 CGImageSource
impl AsRef<AnyObject> for CGImageSource
Source§impl AsRef<CFType> for CGImageSource
impl AsRef<CFType> for CGImageSource
Source§impl AsRef<CGImageSource> for CGImageSource
impl AsRef<CGImageSource> for CGImageSource
Source§impl Borrow<AnyObject> for CGImageSource
impl Borrow<AnyObject> for CGImageSource
Source§impl Borrow<CFType> for CGImageSource
impl Borrow<CFType> for CGImageSource
Source§impl ConcreteType for CGImageSource
impl ConcreteType for CGImageSource
Source§impl Debug for CGImageSource
impl Debug for CGImageSource
Source§impl Deref for CGImageSource
impl Deref for CGImageSource
Source§impl Hash for CGImageSource
impl Hash for CGImageSource
Source§impl Message for CGImageSource
impl Message for CGImageSource
Source§impl PartialEq for CGImageSource
impl PartialEq for CGImageSource
Source§impl RefEncode for CGImageSource
impl RefEncode for CGImageSource
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 CGImageSource
impl Type for CGImageSource
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 CGImageSource
Auto Trait Implementations§
impl !Freeze for CGImageSource
impl !RefUnwindSafe for CGImageSource
impl !Send for CGImageSource
impl !Sync for CGImageSource
impl !Unpin for CGImageSource
impl !UnwindSafe for CGImageSource
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