pub struct Backdrop {
pub filter: ImageFilter,
pub shared_key: Option<u64>,
}Expand description
Backdrop filters the sampled scene before a save layer’s children paint.
Compose image filters to control the order of backdrop effects. The layer’s paint separately controls how the filtered backdrop and children composite.
Fields§
§filter: ImageFilterfilter transforms the sampled scene in local coordinates.
shared_key lets tiles reuse the first matching filtered snapshot,
which sees the scene as of the first tile. Use one key only for tiles
over the same background with the same filter.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Backdrop
Auto Trait Implementations§
impl !RefUnwindSafe for Backdrop
impl !UnwindSafe for Backdrop
impl Forget for Backdrop
impl Freeze for Backdropwhere
*const ArcInner<ImageFilter> is !null: Freeze,
PhantomData<ArcInner<ImageFilter>>: Freeze,
*const ArcInner<RuntimeEffect> is !null: Freeze,
PhantomData<ArcInner<RuntimeEffect>>: Freeze,
*const ArcInner<[u8]> is !null: Freeze,
PhantomData<ArcInner<[u8]>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<EffectImage>: Freeze,
PhantomData<(String, f64)>: Freeze,
impl Move for Backdrop
impl Send for Backdropwhere
Arc<ImageFilter>: Send,
Arc<RuntimeEffect>: Send,
Arc<[u8]>: Send,
RawVecInner: Send,
Arc<ImageInner>: Send,
impl Sync for Backdropwhere
Arc<ImageFilter>: Sync,
Arc<RuntimeEffect>: Sync,
Arc<[u8]>: Sync,
RawVecInner: Sync,
Arc<ImageInner>: Sync,
impl Unpin for Backdropwhere
Arc<ImageFilter>: Unpin,
Arc<RuntimeEffect>: Unpin,
Arc<[u8]>: Unpin,
*const u8 is !null: Unpin,
Arc<ImageInner>: Unpin,
impl UnsafeUnpin for Backdropwhere
*const ArcInner<ImageFilter> is !null: UnsafeUnpin,
PhantomData<ArcInner<ImageFilter>>: UnsafeUnpin,
*const ArcInner<RuntimeEffect> is !null: UnsafeUnpin,
PhantomData<ArcInner<RuntimeEffect>>: UnsafeUnpin,
*const ArcInner<[u8]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[u8]>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<EffectImage>: UnsafeUnpin,
PhantomData<(String, f64)>: UnsafeUnpin,
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