pub struct RadialGradient {
pub(crate) base: BaseGradient,
pub(crate) cx: f32,
pub(crate) cy: f32,
pub(crate) r: PositiveF32,
pub(crate) fx: f32,
pub(crate) fy: f32,
}Expand description
A radial gradient.
radialGradient element in SVG.
Fields§
§base: BaseGradient§cx: f32§cy: f32§r: PositiveF32§fx: f32§fy: f32Implementations§
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