pub struct ShadingPattern {
pub shading: Arc<Shading>,
pub matrix: Affine,
pub opacity: f32,
}Expand description
A shading pattern.
Fields§
§shading: Arc<Shading>The underlying shading of the pattern.
matrix: AffineA transformation matrix to apply prior to rendering.
opacity: f32An additional opacity to apply to the shading pattern.
Implementations§
Source§impl ShadingPattern
impl ShadingPattern
Sourcepub fn encode(&self) -> EncodedShadingPattern
pub fn encode(&self) -> EncodedShadingPattern
Encode the shading pattern.
Trait Implementations§
Source§impl CacheKey for ShadingPattern
impl CacheKey for ShadingPattern
Source§impl Clone for ShadingPattern
impl Clone for ShadingPattern
Source§fn clone(&self) -> ShadingPattern
fn clone(&self) -> ShadingPattern
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ShadingPattern
impl !RefUnwindSafe for ShadingPattern
impl Send for ShadingPattern
impl Sync for ShadingPattern
impl Unpin for ShadingPattern
impl !UnwindSafe for ShadingPattern
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