Struct usvg_tree::RadialGradient
source · pub struct RadialGradient {
pub id: String,
pub cx: f64,
pub cy: f64,
pub r: PositiveF64,
pub fx: f64,
pub fy: f64,
pub base: BaseGradient,
}
Expand description
A radial gradient.
radialGradient
element in SVG.
Fields§
§id: String
Element’s ID.
Taken from the SVG itself. Can’t be empty.
cx: f64
§cy: f64
§r: PositiveF64
§fx: f64
§fy: f64
§base: BaseGradient
Base gradient data.
Trait Implementations§
source§impl Clone for RadialGradient
impl Clone for RadialGradient
source§fn clone(&self) -> RadialGradient
fn clone(&self) -> RadialGradient
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 more