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
impl Polygon
sourcefn parse_function_arguments<'i, 't>(
context: &ParserContext<'_>,
input: &mut Parser<'i, 't>,
shape_type: ShapeType,
) -> Result<Self, ParseError<'i>>
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.