pub struct PaintEffects<'a> {
pub bg_paint: Option<Paint<'a>>,
pub corner_radii: Option<CornerRadii>,
pub blend_mode: BlendMode,
pub isolate: bool,
pub filter: LayerFilter,
pub backdrop_filter: BackdropFilter,
pub transform: Option<Transform2D>,
pub clip_path: Option<StrRef<'a>>,
pub external_texture: Option<&'a ExternalTextureSpec>,
}Expand description
按需分配于 ScratchArena 的 Div 高级渲染特效包(多色标渐变、独立圆角、混合模式、滤镜、2D 变换、路径裁剪与外部零拷贝纹理)。
Fields§
§bg_paint: Option<Paint<'a>>§corner_radii: Option<CornerRadii>§blend_mode: BlendMode§isolate: bool§filter: LayerFilter§backdrop_filter: BackdropFilter§transform: Option<Transform2D>§clip_path: Option<StrRef<'a>>§external_texture: Option<&'a ExternalTextureSpec>Implementations§
Trait Implementations§
Source§impl<'a> Clone for PaintEffects<'a>
impl<'a> Clone for PaintEffects<'a>
impl<'a> Copy for PaintEffects<'a>
Source§impl<'a> Debug for PaintEffects<'a>
impl<'a> Debug for PaintEffects<'a>
Auto Trait Implementations§
impl<'a> Forget for PaintEffects<'a>
impl<'a> Freeze for PaintEffects<'a>
impl<'a> Move for PaintEffects<'a>
impl<'a> RefUnwindSafe for PaintEffects<'a>
impl<'a> Send for PaintEffects<'a>
impl<'a> Sync for PaintEffects<'a>
impl<'a> Unpin for PaintEffects<'a>
impl<'a> UnsafeUnpin for PaintEffects<'a>
impl<'a> UnwindSafe for PaintEffects<'a>
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<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) 时执行闭包修饰自身,否则原样返回。