Class CliOverlay
- Namespace
- ItTiger.TigerCli.Primitives
- Assembly
- ItTiger.TigerCli.dll
A post-layout, one-dimensional strip that can overwrite measured cells in a
CliGrid after the standard measurement pass.
public class CliOverlay
- Inheritance
-
CliOverlay
- Inherited Members
Constructors
CliOverlay(CliPoint, CliOrientation, int, CliCharStyle, CliOverlayRenderer)
Creates an overlay whose renderer supplies uniformly styled characters.
public CliOverlay(CliPoint start, CliOrientation orientation, int logicalLength, CliCharStyle style, CliOverlayRenderer renderer)
Parameters
startCliPoint- The starting grid coordinate in column, row order.
orientationCliOrientation- The direction in which the overlay extends.
logicalLengthint- The number of grid cells covered by the overlay.
styleCliCharStyle- The style applied to rendered characters.
rendererCliOverlayRenderer- The delegate that supplies the overlay characters.
CliOverlay(CliPoint, CliOrientation, int, CliCharStyle, CliStyledOverlayRenderer)
Creates an overlay whose renderer can style individual characters.
public CliOverlay(CliPoint start, CliOrientation orientation, int logicalLength, CliCharStyle style, CliStyledOverlayRenderer renderer)
Parameters
startCliPoint- The starting grid coordinate in column, row order.
orientationCliOrientation- The direction in which the overlay extends.
logicalLengthint- The number of grid cells covered by the overlay.
styleCliCharStyle- The base style used by glyphs without a per-character style.
rendererCliStyledOverlayRenderer- The delegate that supplies the styled overlay glyphs.
Properties
LogicalLength
Number of grid cells covered by the overlay.
public int LogicalLength { get; }
Property Value
Orientation
Whether the overlay runs along rows (
Vertical, shape 1 × m)
or along columns (Horizontal, shape n × 1).public CliOrientation Orientation { get; }
Property Value
Renderer
Delegate that produces the actual characters to render, or
null when the overlay was created
from a CliStyledOverlayRenderer. Application always goes through the unified
ItTiger.TigerCli.Primitives.CliOverlay.StyledRenderer; this property is retained for source compatibility.public CliOverlayRenderer? Renderer { get; }
Property Value
Start
Grid cell at which the overlay begins (column, row).
public CliPoint Start { get; }
Property Value
Style
Base character style applied to every character the overlay writes that does not carry its own
per-character style. For a plain CliOverlayRenderer this is the uniform style of the
whole overlay; for a CliStyledOverlayRenderer it is the fallback used wherever a
glyph's Style is
null.public CliCharStyle Style { get; }