public abstract class Canvas extends Widget:
Base class for custom drawing widgets.
A canvas is intentionally non-focusable and expansive on both axes. It is meant to occupy the central drawing area of an interface while side controls keep their preferred width or height.
class Gauge extends Canvas: public override paint(painter as Painter) as Void: painter.fillRect(this.x, this.y, this.width, this.height)
| Modifier and Type | Member | Description |
|---|---|---|
| public | CanvasCanvas(): |
Creates an expansive non-focusable drawing widget. |