Polygon

Type Alias Polygon 

Source
pub type Polygon = GenericPolygon<LengthPercentage>;
Expand description

The specified value of Polygon.

Aliased Type§

#[repr(C)]
pub struct Polygon { pub fill: FillRule, pub coordinates: OwnedSlice<PolygonCoord<LengthPercentage>>, }

Fields§

§fill: FillRule

The filling rule for a polygon.

§coordinates: OwnedSlice<PolygonCoord<LengthPercentage>>

A collection of (x, y) coordinates to draw the polygon.

Trait Implementations§

Source§

impl Parse for Polygon

Source§

fn parse<'i, 't>( context: &ParserContext<'_>, input: &mut Parser<'i, 't>, ) -> Result<Self, ParseError<'i>>

Parse a value of this type. Read more