logo
Expand description

Graphics primitives

Re-exports

pub use self::rectangle::Rectangle;
pub use self::arc::Arc;
pub use self::circle::Circle;
pub use self::ellipse::Ellipse;
pub use self::line::Line;
pub use self::polyline::Polyline;
pub use self::rounded_rectangle::RoundedRectangle;
pub use self::sector::Sector;
pub use self::triangle::Triangle;

Modules

The arc primitive

The circle primitive

The ellipse primitive

The line primitive

The polyline primitive

The rectangle primitive. Also good for drawing squares.

The rounded rectangle primitive.

The sector primitive

The triangle primitive.

Structs

The definition of each corner radius for a rounded rectangle.

Style properties for primitives.

Primitive style builder.

Styled.

Enums

Stroke alignment.

Traits

Trait to check if a point is inside a closed shape.

Offset outline trait.

Create an iterator over all points in the primitive.

Primitive trait

Styled dimensions.

Styled drawable.