[][src]Module iced::widget::canvas

This is supported on feature="canvas" only.

Draw 2D graphics for your users.

A Canvas widget can be used to draw different kinds of 2D shapes in a Frame. It can be used for animation, data visualization, game graphics, and more!

Modules

layerfeature="canvas"

Produce, store, and reuse geometry.

pathfeature="canvas"

Build different kinds of 2D shapes.

Structs

Canvasfeature="canvas"

A widget capable of drawing 2D graphics.

Framefeature="canvas"

The frame of a Canvas.

Pathfeature="canvas"

An immutable set of points that may or may not be connected.

Strokefeature="canvas"

The style of a stroke.

Textfeature="canvas"

A bunch of text that can be drawn to a canvas

Enums

Fillfeature="canvas"

The style used to fill geometry.

LineCapfeature="canvas"

The shape used at the end of open subpaths when they are stroked.

LineJoinfeature="canvas"

The shape used at the corners of paths or basic shapes when they are stroked.

Traits

Drawablefeature="canvas"

A type that can be drawn on a Frame.

Layerfeature="canvas"

A layer that can be presented at a Canvas.