[][src]Module iced_graphics::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!

Re-exports

pub use path::Path;

Modules

pathfeature="canvas"

Build different kinds of 2D shapes.

Structs

Cachefeature="canvas"

A simple cache that stores generated Geometry to avoid recomputation.

Canvasfeature="canvas"

A widget capable of drawing 2D graphics.

Fillfeature="canvas"

The style used to fill geometry.

Framefeature="canvas"

The frame of a Canvas.

Geometryfeature="canvas"

A bunch of shapes that can be drawn.

Strokefeature="canvas"

The style of a stroke.

Textfeature="canvas"

A bunch of text that can be drawn to a canvas

Enums

Cursorfeature="canvas"

The mouse cursor state.

Eventfeature="canvas"

A Canvas event.

FillRulefeature="canvas"

The fill rule defines how to determine what is inside and what is outside of a shape.

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

Programfeature="canvas"

The state and logic of a Canvas.