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, header: &CFData)
Methods from Deref<Target = ColorSyncProfile>§
Sourcepub unsafe fn verify(
&self,
errors: *mut *mut CFError,
warnings: *mut *mut CFError,
) -> bool
pub unsafe fn verify( &self, errors: *mut *mut CFError, warnings: *mut *mut CFError, ) -> bool
§Safety
errorsmust be a valid pointer or null.warningsmust be a valid pointer or null.
pub unsafe fn is_wide_gamut(&self) -> bool
pub unsafe fn is_matrix_based(&self) -> bool
pub unsafe fn is_pq_based(&self) -> bool
pub unsafe fn is_hlg_based(&self) -> bool
Sourcepub unsafe fn estimate_gamma(&self, error: *mut *mut CFError) -> c_float
pub unsafe fn estimate_gamma(&self, error: *mut *mut CFError) -> c_float
§Safety
error must be a valid pointer or null.
Sourcepub unsafe fn display_transfer_formula_from_vcgt(
&self,
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_formula_from_vcgt( &self, 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
§Safety
red_minmust be a valid pointer.red_maxmust be a valid pointer.red_gammamust be a valid pointer.green_minmust be a valid pointer.green_maxmust be a valid pointer.green_gammamust be a valid pointer.blue_minmust be a valid pointer.blue_maxmust be a valid pointer.blue_gammamust be a valid pointer.
Sourcepub unsafe fn display_transfer_tables_from_vcgt(
&self,
n_samples_per_channel: NonNull<usize>,
) -> Option<CFRetained<CFData>>
pub unsafe fn display_transfer_tables_from_vcgt( &self, n_samples_per_channel: NonNull<usize>, ) -> Option<CFRetained<CFData>>
§Safety
n_samples_per_channel must be a valid pointer.
pub unsafe fn md_5(&self) -> ColorSyncMD5
Sourcepub unsafe fn data(&self, error: *mut *mut CFError) -> CFRetained<CFData>
pub unsafe fn data(&self, error: *mut *mut CFError) -> CFRetained<CFData>
§Safety
error must be a valid pointer or null.
Sourcepub unsafe fn url(&self, error: *mut *mut CFError) -> CFRetained<CFURL>
pub unsafe fn url(&self, error: *mut *mut CFError) -> CFRetained<CFURL>
§Safety
error must be a valid pointer or null.
pub unsafe fn header(&self) -> CFRetained<CFData>
pub unsafe fn description_string(&self) -> Option<CFRetained<CFString>>
pub unsafe fn tag_signatures(&self) -> Option<CFRetained<CFArray>>
pub unsafe fn contains_tag(&self, signature: &CFString) -> bool
pub unsafe fn tag(&self, signature: &CFString) -> Option<CFRetained<CFData>>
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 CFNumbers, small CFStrings 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