Module nannou::ui::widget::rounded_rectangle[][src]

Similar to the Rectangle widget however is drawn with rounded corners.

The roundedness of the corners is specified with a radius. This indicates the radius of the circle used to draw the corners.

Structs

Points

An iterator yielding the outer points of a RoundedRectangle

RoundedRectangle

Draws a rectangle with corners rounded via the given radius.

State

Unique state for the RoundedRectangle.

Constants

DEFAULT_CORNER_RESOLUTION

The default resolution of the circle used to draw the rounded corners.

Functions

is_over_widget

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

points

Produce an iterator yielding the outer points of a rounded rectangle.

Type Definitions

Triangles

An iterator yielding triangles for a RoundedRectangle.