Type Alias style::values::specified::basic_shape::Polygon

source ·
pub type Polygon = GenericPolygon<LengthPercentage>;
Expand description

The specified value of Polygon.

Aliased Type§

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.

Implementations§

source§

impl Polygon

source

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

Parse the inner arguments of a polygon function.

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