#[repr(C)]pub struct CGImageDestination { /* private fields */ }
Available on crate feature
CGImageDestination
only.Expand description
Implementations§
Source§impl CGImageDestination
impl CGImageDestination
pub unsafe fn type_identifiers() -> CFRetained<CFArray>
pub 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( data: &CFMutableData, 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>>
pub unsafe fn set_properties( self: &CGImageDestination, properties: Option<&CFDictionary>, )
pub unsafe fn add_image( self: &CGImageDestination, image: &CGImage, properties: Option<&CFDictionary>, )
Available on crate feature
objc2-core-graphics
only.pub unsafe fn add_image_from_source( self: &CGImageDestination, isrc: &CGImageSource, index: usize, properties: Option<&CFDictionary>, )
Available on crate feature
CGImageSource
only.pub unsafe fn finalize(self: &CGImageDestination) -> bool
pub unsafe fn add_image_and_metadata( self: &CGImageDestination, image: &CGImage, metadata: Option<&CGImageMetadata>, options: Option<&CFDictionary>, )
Available on crate features
CGImageMetadata
and objc2-core-graphics
only.Source§impl CGImageDestination
impl CGImageDestination
pub unsafe fn copy_image_source( self: &CGImageDestination, isrc: &CGImageSource, options: Option<&CFDictionary>, err: *mut *mut CFError, ) -> bool
Available on crate feature
CGImageSource
only.pub unsafe fn add_auxiliary_data_info( self: &CGImageDestination, auxiliary_image_data_type: &CFString, auxiliary_data_info_dictionary: &CFDictionary, )
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
The Objective-C type-encoding for a reference of this type. Read more
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,
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 CGImageDestination
Auto Trait Implementations§
impl !Freeze for CGImageDestination
impl !RefUnwindSafe for CGImageDestination
impl !Send for CGImageDestination
impl !Sync for CGImageDestination
impl !Unpin for CGImageDestination
impl !UnwindSafe for CGImageDestination
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