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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§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<DisplayHeadroom, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DisplayHeadroom, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for DisplayHeadroom
impl PartialEq for DisplayHeadroom
Source§impl Serialize for DisplayHeadroom
impl Serialize for DisplayHeadroom
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl Copy 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 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,
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