#[repr(transparent)]pub struct NSImageDynamicRange(pub NSInteger);
Available on crate feature
NSImageView
only.Expand description
Values that can be used to enable or constrain display of High Dynamic Range (HDR) content in NSImageViews. Displaying HDR content in an NSImageView requires that the assigned NSImage has HDR content in the ITU-R 2100 color space and also that the output device has Extended Dynamic Range (EDR) capabilities.
See also Apple’s documentation
Tuple Fields§
§0: NSInteger
Implementations§
Source§impl NSImageDynamicRange
impl NSImageDynamicRange
pub const Unspecified: Self
Sourcepub const Standard: Self
pub const Standard: Self
Restrict the image content dynamic range to the standard range regardless of the actual range of the image content.
Sourcepub const ConstrainedHigh: Self
pub const ConstrainedHigh: Self
Allow constrained HDR image content. Useful when mixing HDR and SDR content.
Trait Implementations§
Source§impl Clone for NSImageDynamicRange
impl Clone for NSImageDynamicRange
Source§fn clone(&self) -> NSImageDynamicRange
fn clone(&self) -> NSImageDynamicRange
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NSImageDynamicRange
impl Debug for NSImageDynamicRange
Source§impl Encode for NSImageDynamicRange
impl Encode for NSImageDynamicRange
Source§impl Hash for NSImageDynamicRange
impl Hash for NSImageDynamicRange
Source§impl Ord for NSImageDynamicRange
impl Ord for NSImageDynamicRange
Source§fn cmp(&self, other: &NSImageDynamicRange) -> Ordering
fn cmp(&self, other: &NSImageDynamicRange) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for NSImageDynamicRange
impl PartialEq for NSImageDynamicRange
Source§impl PartialOrd for NSImageDynamicRange
impl PartialOrd for NSImageDynamicRange
Source§impl RefEncode for NSImageDynamicRange
impl RefEncode for NSImageDynamicRange
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for NSImageDynamicRange
impl Eq for NSImageDynamicRange
impl StructuralPartialEq for NSImageDynamicRange
Auto Trait Implementations§
impl Freeze for NSImageDynamicRange
impl RefUnwindSafe for NSImageDynamicRange
impl Send for NSImageDynamicRange
impl Sync for NSImageDynamicRange
impl Unpin for NSImageDynamicRange
impl UnwindSafe for NSImageDynamicRange
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.