pub type SVGPathPosition = GenericPosition<CSSFloat, CSSFloat>;Expand description
A position type for SVG path coordinates (just a pair of floats).
Aliased Type§
#[repr(C)]pub struct SVGPathPosition {
pub horizontal: f32,
pub vertical: f32,
}Fields§
§horizontal: f32The horizontal component of position.
vertical: f32The vertical component of position.
Trait Implementations§
Source§impl From<CoordinatePair<f32>> for SVGPathPosition
impl From<CoordinatePair<f32>> for SVGPathPosition
Source§impl ToCss for SVGPathPosition
impl ToCss for SVGPathPosition
Source§fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Resultwhere
W: Write,
fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Resultwhere
W: Write,
Serialize
self in CSS syntax, writing to dest.Source§fn to_css_string(&self) -> String
fn to_css_string(&self) -> String
Serialize
self in CSS syntax and return a string. Read moreSource§fn to_css_cssstring(&self) -> String
fn to_css_cssstring(&self) -> String
Serialize
self in CSS syntax and return a CssString. Read more