pub type ShapePosition<LengthPercentage> = GenericPosition<LengthPercentage, LengthPercentage>;Expand description
A generic value for <position> in circle(), ellipse(), and shape().
Aliased Type§
#[repr(C)]pub struct ShapePosition<LengthPercentage> {
pub horizontal: LengthPercentage,
pub vertical: LengthPercentage,
}Fields§
§horizontal: LengthPercentageThe horizontal component of position.
vertical: LengthPercentageThe vertical component of position.
Trait Implementations§
Source§impl From<CoordinatePair<f32>> for ShapePosition<CSSFloat>
impl From<CoordinatePair<f32>> for ShapePosition<CSSFloat>
Source§impl ToCss for ShapePosition<CSSFloat>
impl ToCss for ShapePosition<CSSFloat>
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