[−][src]Module canrust::canvas
Main structs. Contains Canvas, Shapes, Button, Text Each one has an in depth documentation.
Structs
Arc | A struct representing an arc, a curved line |
Button | Representation of a clickable button, that when clicked will execute a function bound to it. |
Canvas | Main object responsible for managing a window and rendering stuff. Only one canvas per running application sadly! |
Circle | Representation of a Circle object. |
Color | Representation of a RGB or RGBA color. |
Line | Representation of a Line object |
Polygon | Representation of multi-point convex shape object. |
Rectangle | Representation of a Rectangle object. |
Text | Representation of a text that can be displayed onto the Canvas |
Enums
Retrieve | Enum used for retrieving objects from Canvas. Returns a wrapped mutable reference to an object on a canvas. |