Struct usvg_tree::BaseGradient
source · pub struct BaseGradient {
pub id: String,
pub units: Units,
pub transform: Transform,
pub spread_method: SpreadMethod,
pub stops: Vec<Stop>,
}
Expand description
A generic gradient.
Fields§
§id: String
Element’s ID.
Taken from the SVG itself.
Used only during SVG writing. resvg
doesn’t rely on this property.
units: Units
Coordinate system units.
gradientUnits
in SVG.
transform: Transform
Gradient transform.
gradientTransform
in SVG.
spread_method: SpreadMethod
Gradient spreading method.
spreadMethod
in SVG.
stops: Vec<Stop>
A list of stop
elements.
Trait Implementations§
source§impl Clone for BaseGradient
impl Clone for BaseGradient
source§fn clone(&self) -> BaseGradient
fn clone(&self) -> BaseGradient
Returns a copy 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 RefUnwindSafe for BaseGradient
impl Send for BaseGradient
impl Sync for BaseGradient
impl Unpin for BaseGradient
impl UnwindSafe for BaseGradient
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