ParseCommandDecorator Class
Definition
Section titled “Definition”Sets the mirror of a glyph.
public sealed class ParseCommandDecorator : ParseCommandBaseInheritance object → ParseCommandBase
Constructors
Section titled “Constructors”ParseCommandDecorator(string, bool)
Section titled “ParseCommandDecorator(string, bool)”Creates a new instance of this command.
public ParseCommandDecorator(string parameters, bool replace)Parameters
Section titled “Parameters”parameters string
The string to parse for parameters.
replace bool
When true, replaces the decorators on the glyph, otherwise it adds them.
Properties
Section titled “Properties”Decorator
Section titled “Decorator”The decorator created by the command settings.
public CellDecorator Decorator { get; set; }The glyph of the decorator.
public int Glyph { get; set; }The color of the decorator.
public Color Color { get; set; }Mirror
Section titled “Mirror”The mirror to apply to the decorator.
public Mirror Mirror { get; set; }Replace
Section titled “Replace”When true, replaces the decorators on the glyph, otherwise it adds them.
public bool Replace { get; set; }Methods
Section titled “Methods”Build(ref ColoredGlyphAndEffect, ColoredGlyphAndEffect[], int, ICellSurface?, ref int, ReadOnlySpan<char>, ParseCommandStacks)
Section titled “Build(ref ColoredGlyphAndEffect, ColoredGlyphAndEffect[], int, ICellSurface?, ref int, ReadOnlySpan<char>, ParseCommandStacks)”Builds a glyph.
public override void Build(ref ColoredGlyphAndEffect glyphState, ColoredGlyphAndEffect[] glyphString, int surfaceIndex, ICellSurface? surface, ref int stringIndex, ReadOnlySpan<char> processedString, ParseCommandStacks commandStack)Parameters
Section titled “Parameters”glyphState ColoredGlyphAndEffect
The current glyph being built.
glyphString ColoredGlyphAndEffect[]
The current string of glyphs that has been processed until now.
surfaceIndex int
Where on the surface this glyph will appear.
surface ICellSurface
The surface associated with the glyph.
stringIndex int
Where in the original string this glyph is from.
processedString ReadOnlySpan<char>
The entire string being processed.
commandStack ParseCommandStacks
The state of commands.