#[repr(C)]pub struct ColorSyncMutableProfile { /* private fields */ }
Available on crate feature
ColorSyncProfile
only.Expand description
Implementations§
Source§impl ColorSyncMutableProfile
impl ColorSyncMutableProfile
pub unsafe fn new() -> Option<CFRetained<ColorSyncMutableProfile>>
pub unsafe fn new_copy( prof: &ColorSyncProfile, ) -> Option<CFRetained<ColorSyncMutableProfile>>
Source§impl ColorSyncMutableProfile
impl ColorSyncMutableProfile
pub unsafe fn set_header(self: &ColorSyncMutableProfile, header: &CFData)
Source§impl ColorSyncMutableProfile
impl ColorSyncMutableProfile
pub unsafe fn set_tag( self: &ColorSyncMutableProfile, signature: &CFString, data: &CFData, )
pub unsafe fn remove_tag(self: &ColorSyncMutableProfile, signature: &CFString)
Methods from Deref<Target = ColorSyncProfile>§
pub unsafe fn verify( self: &ColorSyncProfile, errors: *mut *mut CFError, warnings: *mut *mut CFError, ) -> bool
pub unsafe fn is_wide_gamut(self: &ColorSyncProfile) -> bool
pub unsafe fn is_matrix_based(self: &ColorSyncProfile) -> bool
pub unsafe fn is_pq_based(self: &ColorSyncProfile) -> bool
pub unsafe fn is_hlg_based(self: &ColorSyncProfile) -> bool
pub unsafe fn estimate_gamma( self: &ColorSyncProfile, error: *mut *mut CFError, ) -> c_float
pub unsafe fn display_transfer_formula_from_vcgt( self: &ColorSyncProfile, red_min: NonNull<c_float>, red_max: NonNull<c_float>, red_gamma: NonNull<c_float>, green_min: NonNull<c_float>, green_max: NonNull<c_float>, green_gamma: NonNull<c_float>, blue_min: NonNull<c_float>, blue_max: NonNull<c_float>, blue_gamma: NonNull<c_float>, ) -> bool
pub unsafe fn display_transfer_tables_from_vcgt( self: &ColorSyncProfile, n_samples_per_channel: NonNull<usize>, ) -> Option<CFRetained<CFData>>
pub unsafe fn md_5(self: &ColorSyncProfile) -> ColorSyncMD5
pub unsafe fn data( self: &ColorSyncProfile, error: *mut *mut CFError, ) -> CFRetained<CFData>
pub unsafe fn url( self: &ColorSyncProfile, error: *mut *mut CFError, ) -> CFRetained<CFURL>
pub unsafe fn header(self: &ColorSyncProfile) -> CFRetained<CFData>
pub unsafe fn description_string( self: &ColorSyncProfile, ) -> Option<CFRetained<CFString>>
pub unsafe fn tag_signatures( self: &ColorSyncProfile, ) -> Option<CFRetained<CFArray>>
pub unsafe fn contains_tag( self: &ColorSyncProfile, signature: &CFString, ) -> bool
pub unsafe fn tag( self: &ColorSyncProfile, signature: &CFString, ) -> Option<CFRetained<CFData>>
pub unsafe fn install( self: &ColorSyncProfile, domain: &CFString, subpath: &CFString, error: *mut *mut CFError, ) -> bool
pub unsafe fn uninstall( self: &ColorSyncProfile, error: *mut *mut CFError, ) -> bool
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 ColorSyncMutableProfile
impl AsRef<AnyObject> for ColorSyncMutableProfile
Source§impl AsRef<CFType> for ColorSyncMutableProfile
impl AsRef<CFType> for ColorSyncMutableProfile
Source§impl AsRef<ColorSyncProfile> for ColorSyncMutableProfile
impl AsRef<ColorSyncProfile> for ColorSyncMutableProfile
Source§fn as_ref(&self) -> &ColorSyncProfile
fn as_ref(&self) -> &ColorSyncProfile
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<AnyObject> for ColorSyncMutableProfile
impl Borrow<AnyObject> for ColorSyncMutableProfile
Source§impl Borrow<CFType> for ColorSyncMutableProfile
impl Borrow<CFType> for ColorSyncMutableProfile
Source§impl Borrow<ColorSyncProfile> for ColorSyncMutableProfile
impl Borrow<ColorSyncProfile> for ColorSyncMutableProfile
Source§fn borrow(&self) -> &ColorSyncProfile
fn borrow(&self) -> &ColorSyncProfile
Immutably borrows from an owned value. Read more
Source§impl Debug for ColorSyncMutableProfile
impl Debug for ColorSyncMutableProfile
Source§impl Deref for ColorSyncMutableProfile
impl Deref for ColorSyncMutableProfile
Source§impl Hash for ColorSyncMutableProfile
impl Hash for ColorSyncMutableProfile
Source§impl Message for ColorSyncMutableProfile
impl Message for ColorSyncMutableProfile
Source§impl PartialEq for ColorSyncMutableProfile
impl PartialEq for ColorSyncMutableProfile
Source§impl RefEncode for ColorSyncMutableProfile
impl RefEncode for ColorSyncMutableProfile
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 ColorSyncMutableProfile
impl Type for ColorSyncMutableProfile
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 ColorSyncMutableProfile
Auto Trait Implementations§
impl !Freeze for ColorSyncMutableProfile
impl !RefUnwindSafe for ColorSyncMutableProfile
impl !Send for ColorSyncMutableProfile
impl !Sync for ColorSyncMutableProfile
impl !Unpin for ColorSyncMutableProfile
impl !UnwindSafe for ColorSyncMutableProfile
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