pub struct LayerFilter {
pub blur_radius: u8,
pub color_matrix: Option<ColorMatrix>,
pub drop_shadow: Option<DropShadow>,
}Expand description
作用在离屏图层内容上的后处理滤镜(filter)。
Fields§
§blur_radius: u8高斯/Kawase 模糊半径(逻辑像素,0 表示关闭)。
color_matrix: Option<ColorMatrix>可选 4×5 色彩矩阵(灰度、饱和度、亮度、对比度、色相旋转等)。
drop_shadow: Option<DropShadow>可选任意形状投影(基于子树 Alpha 轮廓)。
Implementations§
Trait Implementations§
Source§impl Clone for LayerFilter
impl Clone for LayerFilter
impl Copy for LayerFilter
Source§impl Debug for LayerFilter
impl Debug for LayerFilter
Source§impl Default for LayerFilter
impl Default for LayerFilter
impl Eq for LayerFilter
Source§impl PartialEq for LayerFilter
impl PartialEq for LayerFilter
impl StructuralPartialEq for LayerFilter
Auto Trait Implementations§
impl Forget for LayerFilter
impl Freeze for LayerFilter
impl Move for LayerFilter
impl RefUnwindSafe for LayerFilter
impl Send for LayerFilter
impl Sync for LayerFilter
impl Unpin for LayerFilter
impl UnsafeUnpin for LayerFilter
impl UnwindSafe for LayerFilter
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) 时执行闭包修饰自身,否则原样返回。