Delegate CliStyledOverlayRenderer
- Namespace
- ItTiger.TigerCli.Primitives
- Assembly
- ItTiger.TigerCli.dll
A delegate that produces styled per-character content for a CliOverlay. This is the
richer counterpart to CliOverlayRenderer: it lets a single overlay emit characters with
different styles (for example a two- or three-colour progress bar) while still owning no placement or
measurement. A glyph whose Style is
null uses the overlay's base
Style.public delegate (bool visible, CliOverlayGlyph[] content) CliStyledOverlayRenderer(CliGrid grid, int renderLength)
Parameters
gridCliGrid- The fully measured grid.
renderLengthint- The number of screen cells occupied by the overlay (measured, like CliOverlayRenderer's — not the grid-cell LogicalLength).
Returns
- (bool visible, CliOverlayGlyph[] content)
visible: whenfalsethe overlay is skipped and underlying content is preserved.content: glyphs to write;content.Lengthmust be <=renderLengthwhenvisibleistrue.