pub struct DisplayHeadroom {
pub current: Option<f32>,
pub potential: Option<f32>,
pub reference: Option<f32>,
}Expand description
Relative EDR headroom (Apple): unitless multipliers over current SDR white,
where 1.0 means no headroom. Moves with brightness, ambient light, battery,
and which display the window is on. Apple exposes no absolute-nit equivalent,
so this is separate from DisplayLuminance and can’t be converted to nits.
Populated only on macOS; None on iOS, tvOS, and visionOS.
Fields§
§current: Option<f32>Headroom available right now (maximumExtendedDynamicRangeColorComponentValue
/ iOS UIScreen.currentEDRHeadroom). 1.0 means no headroom at this
instant, even on an HDR-capable panel.
potential: Option<f32>Headroom the display could reach under ideal conditions
(maximumPotentialExtendedDynamicRangeColorComponentValue /
UIScreen.potentialEDRHeadroom).
reference: Option<f32>Headroom for reference-white content
(maximumReferenceExtendedDynamicRangeColorComponentValue). None if
unreported.
Trait Implementations§
Source§impl Clone for DisplayHeadroom
impl Clone for DisplayHeadroom
Source§fn clone(&self) -> DisplayHeadroom
fn clone(&self) -> DisplayHeadroom
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for DisplayHeadroom
Source§impl Debug for DisplayHeadroom
impl Debug for DisplayHeadroom
Source§impl Default for DisplayHeadroom
impl Default for DisplayHeadroom
Source§fn default() -> DisplayHeadroom
fn default() -> DisplayHeadroom
Source§impl<'de> Deserialize<'de> for DisplayHeadroom
impl<'de> Deserialize<'de> for DisplayHeadroom
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for DisplayHeadroom
impl PartialEq for DisplayHeadroom
Source§fn eq(&self, other: &DisplayHeadroom) -> bool
fn eq(&self, other: &DisplayHeadroom) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for DisplayHeadroom
impl Serialize for DisplayHeadroom
impl StructuralPartialEq for DisplayHeadroom
Auto Trait Implementations§
impl Freeze for DisplayHeadroom
impl RefUnwindSafe for DisplayHeadroom
impl Send for DisplayHeadroom
impl Sync for DisplayHeadroom
impl Unpin for DisplayHeadroom
impl UnsafeUnpin for DisplayHeadroom
impl UnwindSafe for DisplayHeadroom
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more