pub struct CGImageSource { /* private fields */ }
CGImageSource
only.Expand description
Implementations§
Source§impl CGImageSource
impl CGImageSource
pub unsafe fn type_identifiers() -> CFRetained<CFArray>
Sourcepub 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_provider( provider: &CGDataProvider, options: Option<&CFDictionary>, ) -> Option<CFRetained<CGImageSource>>
objc2-core-graphics
only.§Safety
options
generics must be of the correct type.
Sourcepub unsafe fn with_data(
data: &CFData,
options: Option<&CFDictionary>,
) -> Option<CFRetained<CGImageSource>>
pub unsafe fn with_data( data: &CFData, options: Option<&CFDictionary>, ) -> Option<CFRetained<CGImageSource>>
§Safety
options
generics must be of the correct type.
Sourcepub unsafe fn with_url(
url: &CFURL,
options: Option<&CFDictionary>,
) -> Option<CFRetained<CGImageSource>>
pub unsafe fn with_url( url: &CFURL, options: Option<&CFDictionary>, ) -> Option<CFRetained<CGImageSource>>
§Safety
options
generics must be of the correct type.
pub unsafe fn type(&self) -> Option<CFRetained<CFString>>
pub unsafe fn count(&self) -> usize
Sourcepub unsafe fn properties(
&self,
options: Option<&CFDictionary>,
) -> Option<CFRetained<CFDictionary>>
pub unsafe fn properties( &self, options: Option<&CFDictionary>, ) -> Option<CFRetained<CFDictionary>>
§Safety
options
generics must be of the correct type.
Sourcepub unsafe fn properties_at_index(
&self,
index: usize,
options: Option<&CFDictionary>,
) -> Option<CFRetained<CFDictionary>>
pub unsafe fn properties_at_index( &self, index: usize, options: Option<&CFDictionary>, ) -> Option<CFRetained<CFDictionary>>
§Safety
options
generics must be of the correct type.
Sourcepub unsafe fn metadata_at_index(
&self,
index: usize,
options: Option<&CFDictionary>,
) -> Option<CFRetained<CGImageMetadata>>
Available on crate feature CGImageMetadata
only.
pub unsafe fn metadata_at_index( &self, index: usize, options: Option<&CFDictionary>, ) -> Option<CFRetained<CGImageMetadata>>
CGImageMetadata
only.§Safety
options
generics must be of the correct type.
Sourcepub unsafe fn image_at_index(
&self,
index: usize,
options: Option<&CFDictionary>,
) -> Option<CFRetained<CGImage>>
Available on crate feature objc2-core-graphics
only.
pub unsafe fn image_at_index( &self, index: usize, options: Option<&CFDictionary>, ) -> Option<CFRetained<CGImage>>
objc2-core-graphics
only.§Safety
options
generics must be of the correct type.
pub unsafe fn remove_cache_at_index(&self, index: usize)
Sourcepub unsafe fn thumbnail_at_index(
&self,
index: usize,
options: Option<&CFDictionary>,
) -> Option<CFRetained<CGImage>>
Available on crate feature objc2-core-graphics
only.
pub unsafe fn thumbnail_at_index( &self, index: usize, options: Option<&CFDictionary>, ) -> Option<CFRetained<CGImage>>
objc2-core-graphics
only.§Safety
options
generics must be of the correct type.
Sourcepub unsafe fn new_incremental(
options: Option<&CFDictionary>,
) -> CFRetained<CGImageSource>
pub unsafe fn new_incremental( options: Option<&CFDictionary>, ) -> CFRetained<CGImageSource>
§Safety
options
generics must be of the correct type.
pub unsafe fn update_data(&self, data: &CFData, final: bool)
pub unsafe fn update_data_provider( &self, provider: &CGDataProvider, final: bool, )
objc2-core-graphics
only.pub unsafe fn status(&self) -> CGImageSourceStatus
pub unsafe fn status_at_index(&self, index: usize) -> CGImageSourceStatus
pub unsafe fn primary_image_index(&self) -> usize
pub unsafe fn auxiliary_data_info_at_index( &self, index: usize, auxiliary_image_data_type: &CFString, ) -> Option<CFRetained<CFDictionary>>
Source§impl CGImageSource
impl CGImageSource
Sourcepub unsafe fn set_allowable_types(allowable_types: &CFArray) -> i32
pub unsafe fn set_allowable_types(allowable_types: &CFArray) -> i32
§Safety
allowable_types
generic must be of the correct type.
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
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,
Source§fn as_concrete_TypeRef(&self) -> &Self
fn as_concrete_TypeRef(&self) -> &Self
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,
core-foundation
crate. Read moreSource§fn as_CFTypeRef(&self) -> &CFType
fn as_CFTypeRef(&self) -> &CFType
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,
core-foundation
crate. Read more