pub struct BackdropFilter {
pub blur_radius: u8,
pub color_matrix: Option<ColorMatrix>,
pub tint: Color,
pub noise_amount: u8,
}Expand description
作用在元素下方已有背景上的实时背景滤镜(CSS backdrop-filter,用于毛玻璃 / Acrylic / Mica)。
Fields§
§blur_radius: u8背景模糊半径(逻辑像素,0 表示不模糊)。
color_matrix: Option<ColorMatrix>可选背景色彩矩阵(如毛玻璃 saturate(1.6) + brightness(1.08))。
tint: Color可选叠层磨砂着色(#no_std 嵌入式低内存档位亦自动降级为此着色)。
noise_amount: u8可选 Acrylic 细微噪点颗粒强度(0..=255,推荐 8..=20)。
Implementations§
Trait Implementations§
Source§impl Clone for BackdropFilter
impl Clone for BackdropFilter
impl Copy for BackdropFilter
Source§impl Debug for BackdropFilter
impl Debug for BackdropFilter
Source§impl Default for BackdropFilter
impl Default for BackdropFilter
impl Eq for BackdropFilter
Source§impl PartialEq for BackdropFilter
impl PartialEq for BackdropFilter
impl StructuralPartialEq for BackdropFilter
Auto Trait Implementations§
impl Forget for BackdropFilter
impl Freeze for BackdropFilter
impl Move for BackdropFilter
impl RefUnwindSafe for BackdropFilter
impl Send for BackdropFilter
impl Sync for BackdropFilter
impl Unpin for BackdropFilter
impl UnsafeUnpin for BackdropFilter
impl UnwindSafe for BackdropFilter
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> FluentBuilder for T
impl<T> FluentBuilder for T
Source§fn when(self, condition: bool, then: impl FnOnce(Self) -> Self) -> Self
fn when(self, condition: bool, then: impl FnOnce(Self) -> Self) -> Self
当
condition 为 true 时执行闭包修饰自身,否则原样返回。Source§fn when_else(
self,
condition: bool,
then: impl FnOnce(Self) -> Self,
else_fn: impl FnOnce(Self) -> Self,
) -> Self
fn when_else( self, condition: bool, then: impl FnOnce(Self) -> Self, else_fn: impl FnOnce(Self) -> Self, ) -> Self
根据
condition 在两个修饰分支之间二选一。Source§fn when_some<O>(
self,
option: Option<O>,
then: impl FnOnce(Self, O) -> Self,
) -> Self
fn when_some<O>( self, option: Option<O>, then: impl FnOnce(Self, O) -> Self, ) -> Self
当
option 为 Some(value) 时执行闭包修饰自身,否则原样返回。