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: FillRuleThe 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(
context: &ParserContext<'_>,
input: &mut Parser<'_>,
shape_type: ShapeType,
) -> Result<Self, ParseError>
fn parse_function_arguments( context: &ParserContext<'_>, input: &mut Parser<'_>, shape_type: ShapeType, ) -> Result<Self, ParseError>
Parse the inner arguments of a polygon function.