[][src]Module conrod_core::widget::primitive::shape::polygon

A simple, non-interactive Polygon widget for drawing arbitrary convex shapes.

Structs

Polygon

A basic, non-interactive, arbitrary Polygon widget.

State

Unique state for the Polygon.

Triangles

An iterator that triangulates a polygon represented by a sequence of points describing its edges.

Enums

Kind

Whether the rectangle is drawn as an outline or a filled color.

Functions

is_over

Returns true if the given Point is over the polygon described by the given series of points.

is_over_widget

The function to use for picking whether a given point is over the polygon.

triangles

Triangulate the polygon given as a list of Points describing its sides.