pub struct ElevationLevel {
pub dp: f64,
pub shadow_light: ShadowSpec,
pub shadow_dark: ShadowSpec,
pub surface_role: SurfaceRole,
}Expand description
One elevation level: its dp value, per-brightness v1 shadow specs, and surface-container role.
Fields§
§dp: f64§shadow_light: ShadowSpecShadow rendered on Brightness::Light.
shadow_dark: ShadowSpecShadow rendered on Brightness::Dark.
surface_role: SurfaceRoleImplementations§
Source§impl ElevationLevel
impl ElevationLevel
Sourcepub fn shadow(&self, brightness: Brightness) -> &ShadowSpec
pub fn shadow(&self, brightness: Brightness) -> &ShadowSpec
The ShadowSpec to render for the given brightness.
Trait Implementations§
Source§impl Clone for ElevationLevel
impl Clone for ElevationLevel
impl Copy for ElevationLevel
Source§impl Debug for ElevationLevel
impl Debug for ElevationLevel
Source§impl PartialEq for ElevationLevel
impl PartialEq for ElevationLevel
impl StructuralPartialEq for ElevationLevel
Auto Trait Implementations§
impl Freeze for ElevationLevel
impl RefUnwindSafe for ElevationLevel
impl Send for ElevationLevel
impl Sync for ElevationLevel
impl Unpin for ElevationLevel
impl UnsafeUnpin for ElevationLevel
impl UnwindSafe for ElevationLevel
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> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.