#[non_exhaustive]pub enum DimStrength {
Light,
Medium,
Heavy,
Custom(f32),
}Expand description
Strength of the dim applied outside the focus shape.
Like BlurStrength, the variants compile
down to numbers — but the symbolic enum is what the editor
persists, so retuning a preset later doesn’t break project files.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Light
Light context dim — surrounding area still legible. Useful for “this is the active panel” gentle hints.
Medium
Balanced dim — surrounding area visibly faded but still recognizable. The default for “follow the walkthrough.”
Heavy
Heavy dim — surrounding area nearly black. The cinematic “spotlight only” treatment.
Custom(f32)
Application-specified alpha. Clamped to [0.0, 1.0] at render
time.
Implementations§
Trait Implementations§
Source§impl Clone for DimStrength
impl Clone for DimStrength
Source§fn clone(&self) -> DimStrength
fn clone(&self) -> DimStrength
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DimStrength
impl Debug for DimStrength
Source§impl Default for DimStrength
impl Default for DimStrength
Source§fn default() -> DimStrength
fn default() -> DimStrength
Returns the “default value” for a type. Read more
Source§impl PartialEq for DimStrength
impl PartialEq for DimStrength
Source§fn eq(&self, other: &DimStrength) -> bool
fn eq(&self, other: &DimStrength) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DimStrength
impl StructuralPartialEq for DimStrength
Auto Trait Implementations§
impl Freeze for DimStrength
impl RefUnwindSafe for DimStrength
impl Send for DimStrength
impl Sync for DimStrength
impl Unpin for DimStrength
impl UnsafeUnpin for DimStrength
impl UnwindSafe for DimStrength
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().