Skip to content

Class Paint

A region drawn by a callback, for anything the other elements do not cover: a gauge, a graph, an animation. The callback gets a canvas clipped to the region and the region’s rectangle.

Declaration
public sealed class Paint : Element

Inheritance: System.Object -> DarkEffekt.Terminal.UI.Element

Declaration
public Action<CellCanvas, CellRect> Draw { get; set; }

The size this element wants, within the room given.

Declaration
protected override CellSize MeasureCore(CellSize available)

DarkEffekt.Terminal.UI.CellSize

Type Name
DarkEffekt.Terminal.UI.CellSize available
Declaration
protected override void RenderCore(CellCanvas canvas)
Type Name
DarkEffekt.Terminal.UI.CellCanvas canvas