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

This is supported on feature="canvas" or feature="glow_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

pathfeature="canvas" or feature="glow_canvas"

Build different kinds of 2D shapes.

Structs

Cachefeature="canvas" or feature="glow_canvas"

A simple cache that stores generated Geometry to avoid recomputation.

Canvasfeature="canvas" or feature="glow_canvas"

A widget capable of drawing 2D graphics.

Fillfeature="canvas" or feature="glow_canvas"

The style used to fill geometry.

Framefeature="canvas" or feature="glow_canvas"

The frame of a Canvas.

Geometryfeature="canvas" or feature="glow_canvas"

A bunch of shapes that can be drawn.

Pathfeature="canvas" or feature="glow_canvas"

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

Strokefeature="canvas" or feature="glow_canvas"

The style of a stroke.

Textfeature="canvas" or feature="glow_canvas"

A bunch of text that can be drawn to a canvas

Enums

Cursorfeature="canvas" or feature="glow_canvas"

The mouse cursor state.

Eventfeature="canvas" or feature="glow_canvas"

A Canvas event.

FillRulefeature="canvas" or feature="glow_canvas"

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

LineCapfeature="canvas" or feature="glow_canvas"

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

LineJoinfeature="canvas" or feature="glow_canvas"

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

Traits

Programfeature="canvas" or feature="glow_canvas"

The state and logic of a Canvas.