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.
Use one key only for tiles over the same background with the same filter.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Backdrop
impl RefUnwindSafe for Backdrop
impl Send for Backdrop
impl Sync for Backdrop
impl Unpin for Backdrop
impl UnsafeUnpin for Backdrop
impl UnwindSafe for Backdrop
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