Struct usvg::RadialGradient
source · pub struct RadialGradient { /* private fields */ }
Expand description
A radial gradient.
radialGradient
element in SVG.
Implementations§
Methods from Deref<Target = BaseGradient>§
sourcepub fn id(&self) -> &str
pub fn id(&self) -> &str
Element’s ID.
Taken from the SVG itself.
Used only during SVG writing. resvg
doesn’t rely on this property.
sourcepub fn spread_method(&self) -> SpreadMethod
pub fn spread_method(&self) -> SpreadMethod
Gradient spreading method.
spreadMethod
in SVG.
Trait Implementations§
source§impl Debug for RadialGradient
impl Debug for RadialGradient
Auto Trait Implementations§
impl Freeze for RadialGradient
impl RefUnwindSafe for RadialGradient
impl Send for RadialGradient
impl Sync for RadialGradient
impl Unpin for RadialGradient
impl UnwindSafe for RadialGradient
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