Struct skia_safe::canvas::SaveLayerRec
source · #[repr(C)]pub struct SaveLayerRec<'a> { /* private fields */ }
Expand description
SaveLayerRec
contains the state used to create the layer.
Implementations§
source§impl<'a> SaveLayerRec<'a>
impl<'a> SaveLayerRec<'a>
sourcepub fn backdrop(self, backdrop: &'a ImageFilter) -> Self
pub fn backdrop(self, backdrop: &'a ImageFilter) -> Self
If not None
, this triggers the same initialization behavior as setting
SaveLayerFlags::INIT_WITH_PREVIOUS
on Self::flags
: the current layer is copied into
the new layer, rather than initializing the new layer with transparent-black. This is then
filtered by Self::backdrop
(respecting the current clip).
pub fn clip_mask(self, _clip_mask: &'a Image) -> Self
👎Deprecated since 0.33.0: removed without replacement, does not set clip_mask
pub fn clip_matrix(self, _clip_matrix: &'a Matrix) -> Self
👎Deprecated since 0.33.0: removed without replacement, does not set clip_matrix
sourcepub fn flags(self, flags: SaveLayerFlags) -> Self
pub fn flags(self, flags: SaveLayerFlags) -> Self
Preserves LCD text, creates with prior layer contents
Trait Implementations§
source§impl Debug for SaveLayerRec<'_>
impl Debug for SaveLayerRec<'_>
source§impl<'a> Default for SaveLayerRec<'a>
impl<'a> Default for SaveLayerRec<'a>
source§fn default() -> Self
fn default() -> Self
Sets Self::bounds
, Self::paint
, and Self::backdrop
to None
. Clears
Self::flags
.
Returns empty SaveLayerRec
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SaveLayerRec<'a>
impl<'a> !Send for SaveLayerRec<'a>
impl<'a> !Sync for SaveLayerRec<'a>
impl<'a> Unpin for SaveLayerRec<'a>
impl<'a> !UnwindSafe for SaveLayerRec<'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