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.
Assembly: DarkEffekt.Terminal.UI
Section titled “Assembly: DarkEffekt.Terminal.UI”public sealed class Paint : ElementInheritance: System.Object -> DarkEffekt.Terminal.UI.Element
Properties
Section titled “Properties”public Action<CellCanvas, CellRect> Draw { get; set; }Methods
Section titled “Methods”MeasureCore(CellSize)
Section titled “MeasureCore(CellSize)”The size this element wants, within the room given.
protected override CellSize MeasureCore(CellSize available)Returns
Section titled “Returns”DarkEffekt.Terminal.UI.CellSize
Parameters
Section titled “Parameters”| Type | Name |
|---|---|
| DarkEffekt.Terminal.UI.CellSize | available |
RenderCore(CellCanvas)
Section titled “RenderCore(CellCanvas)”protected override void RenderCore(CellCanvas canvas)Parameters
Section titled “Parameters”| Type | Name |
|---|---|
| DarkEffekt.Terminal.UI.CellCanvas | canvas |