pub struct Effects {
pub box_shadows: Vec<BoxShadow>,
pub background_images: Vec<Gradient>,
pub filters: Vec<Filter>,
pub backdrop_filters: Vec<Filter>,
pub mask_images: Vec<Gradient>,
pub clip_path: Option<ClipInset>,
}Expand description
The list-valued effects of a view, shared between equal styles.
Fields§
§box_shadows: Vec<BoxShadow>Box shadows, top layer first (CSS order).
background_images: Vec<Gradient>Gradient backgrounds, top layer first, over backgroundColor.
filters: Vec<Filter>Filters applied to the view and its content, in order.
backdrop_filters: Vec<Filter>Filters applied to what is behind the view (blur only on iOS).
mask_images: Vec<Gradient>maskImage: gradients whose alpha decides how much of the view is
drawn, top layer first (CSS order). Only gradients: CSS also takes
images and shapes here, which no platform of NSH draws yet.
clip_path: Option<ClipInset>clipPath: the inset rounded rectangle everything the view draws is
clipped to, and outside which nothing of it is hit.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Effects
Auto Trait Implementations§
impl Forget for Effects
impl Freeze for Effectswhere
*const u8 is !null: Freeze,
PhantomData<BoxShadow>: Freeze,
PhantomData<Gradient>: Freeze,
PhantomData<Filter>: Freeze,
impl Move for Effects
impl RefUnwindSafe for Effects
impl Send for Effectswhere
RawVecInner: Send,
impl Sync for Effectswhere
RawVecInner: Sync,
impl Unpin for Effects
impl UnsafeUnpin for Effectswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<BoxShadow>: UnsafeUnpin,
PhantomData<Gradient>: UnsafeUnpin,
PhantomData<Filter>: UnsafeUnpin,
impl UnwindSafe for Effectswhere
RawVecInner: UnwindSafe,
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