pub struct CGImageDestination { /* private fields */ }
CGImageDestination
only.Expand description
Implementations§
Source§impl CGImageDestination
impl CGImageDestination
pub unsafe fn type_identifiers() -> CFRetained<CFArray>
Sourcepub unsafe fn with_data_consumer(
consumer: &CGDataConsumer,
type: &CFString,
count: usize,
options: Option<&CFDictionary>,
) -> Option<CFRetained<CGImageDestination>>
Available on crate feature objc2-core-graphics
only.
pub unsafe fn with_data_consumer( consumer: &CGDataConsumer, type: &CFString, count: usize, options: Option<&CFDictionary>, ) -> Option<CFRetained<CGImageDestination>>
objc2-core-graphics
only.§Safety
options
generics must be of the correct type.
Sourcepub unsafe fn with_data(
data: &CFMutableData,
type: &CFString,
count: usize,
options: Option<&CFDictionary>,
) -> Option<CFRetained<CGImageDestination>>
pub unsafe fn with_data( data: &CFMutableData, type: &CFString, count: usize, options: Option<&CFDictionary>, ) -> Option<CFRetained<CGImageDestination>>
§Safety
options
generics must be of the correct type.
Sourcepub unsafe fn with_url(
url: &CFURL,
type: &CFString,
count: usize,
options: Option<&CFDictionary>,
) -> Option<CFRetained<CGImageDestination>>
pub unsafe fn with_url( url: &CFURL, type: &CFString, count: usize, options: Option<&CFDictionary>, ) -> Option<CFRetained<CGImageDestination>>
§Safety
options
generics must be of the correct type.
Sourcepub unsafe fn set_properties(&self, properties: Option<&CFDictionary>)
pub unsafe fn set_properties(&self, properties: Option<&CFDictionary>)
§Safety
properties
generics must be of the correct type.
Sourcepub unsafe fn add_image(
&self,
image: &CGImage,
properties: Option<&CFDictionary>,
)
Available on crate feature objc2-core-graphics
only.
pub unsafe fn add_image( &self, image: &CGImage, properties: Option<&CFDictionary>, )
objc2-core-graphics
only.§Safety
properties
generics must be of the correct type.
Sourcepub unsafe fn add_image_from_source(
&self,
isrc: &CGImageSource,
index: usize,
properties: Option<&CFDictionary>,
)
Available on crate feature CGImageSource
only.
pub unsafe fn add_image_from_source( &self, isrc: &CGImageSource, index: usize, properties: Option<&CFDictionary>, )
CGImageSource
only.§Safety
properties
generics must be of the correct type.
pub unsafe fn finalize(&self) -> bool
Sourcepub unsafe fn add_image_and_metadata(
&self,
image: &CGImage,
metadata: Option<&CGImageMetadata>,
options: Option<&CFDictionary>,
)
Available on crate features CGImageMetadata
and objc2-core-graphics
only.
pub unsafe fn add_image_and_metadata( &self, image: &CGImage, metadata: Option<&CGImageMetadata>, options: Option<&CFDictionary>, )
CGImageMetadata
and objc2-core-graphics
only.§Safety
options
generics must be of the correct type.
Source§impl CGImageDestination
impl CGImageDestination
Sourcepub unsafe fn copy_image_source(
&self,
isrc: &CGImageSource,
options: Option<&CFDictionary>,
err: *mut *mut CFError,
) -> bool
Available on crate feature CGImageSource
only.
pub unsafe fn copy_image_source( &self, isrc: &CGImageSource, options: Option<&CFDictionary>, err: *mut *mut CFError, ) -> bool
CGImageSource
only.§Safety
options
generics must be of the correct type.err
must be a valid pointer or null.
Sourcepub unsafe fn add_auxiliary_data_info(
&self,
auxiliary_image_data_type: &CFString,
auxiliary_data_info_dictionary: &CFDictionary,
)
pub unsafe fn add_auxiliary_data_info( &self, auxiliary_image_data_type: &CFString, auxiliary_data_info_dictionary: &CFDictionary, )
§Safety
auxiliary_data_info_dictionary
generics 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 CGImageDestination
impl AsRef<AnyObject> for CGImageDestination
Source§impl AsRef<CFType> for CGImageDestination
impl AsRef<CFType> for CGImageDestination
Source§impl AsRef<CGImageDestination> for CGImageDestination
impl AsRef<CGImageDestination> for CGImageDestination
Source§impl Borrow<AnyObject> for CGImageDestination
impl Borrow<AnyObject> for CGImageDestination
Source§impl Borrow<CFType> for CGImageDestination
impl Borrow<CFType> for CGImageDestination
Source§impl ConcreteType for CGImageDestination
impl ConcreteType for CGImageDestination
Source§impl Debug for CGImageDestination
impl Debug for CGImageDestination
Source§impl Deref for CGImageDestination
impl Deref for CGImageDestination
Source§impl Hash for CGImageDestination
impl Hash for CGImageDestination
Source§impl Message for CGImageDestination
impl Message for CGImageDestination
Source§impl PartialEq for CGImageDestination
impl PartialEq for CGImageDestination
Source§impl RefEncode for CGImageDestination
impl RefEncode for CGImageDestination
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
Source§impl Type for CGImageDestination
impl Type for CGImageDestination
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