pub struct SurfaceEffects {
pub interaction: InteractionState,
pub glow: Glow,
pub elevation: Elevation,
pub focus_ring_alpha: f32,
pub disabled_alpha: f32,
}Fields§
§interaction: InteractionState§glow: Glow§elevation: Elevation§focus_ring_alpha: f32§disabled_alpha: f32Implementations§
Source§impl SurfaceEffects
impl SurfaceEffects
pub fn resolve(accent: Rgba, interaction: InteractionState, time: f32) -> Self
pub fn cache_key( accent: Rgba, interaction: InteractionState, time: f32, ) -> SurfaceEffectCacheKey
Trait Implementations§
Source§impl Clone for SurfaceEffects
impl Clone for SurfaceEffects
Source§fn clone(&self) -> SurfaceEffects
fn clone(&self) -> SurfaceEffects
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 moreimpl Copy for SurfaceEffects
Source§impl Debug for SurfaceEffects
impl Debug for SurfaceEffects
Source§impl<'de> Deserialize<'de> for SurfaceEffects
impl<'de> Deserialize<'de> for SurfaceEffects
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SurfaceEffects
impl PartialEq for SurfaceEffects
Source§fn eq(&self, other: &SurfaceEffects) -> bool
fn eq(&self, other: &SurfaceEffects) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SurfaceEffects
impl Serialize for SurfaceEffects
impl StructuralPartialEq for SurfaceEffects
Auto Trait Implementations§
impl Freeze for SurfaceEffects
impl RefUnwindSafe for SurfaceEffects
impl Send for SurfaceEffects
impl Sync for SurfaceEffects
impl Unpin for SurfaceEffects
impl UnsafeUnpin for SurfaceEffects
impl UnwindSafe for SurfaceEffects
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