GlyphDefinition Struct
Definition
Section titled “Definition”Represents a decorator (glyph and mirror) defined by a font.
public readonly struct GlyphDefinitionConstructors
Section titled “Constructors”GlyphDefinition(int, Mirror)
Section titled “GlyphDefinition(int, Mirror)”Creates a new cell decorator instance.
public GlyphDefinition(int glyph, Mirror mirror)Parameters
Section titled “Parameters”glyph int
mirror Mirror
Properties
Section titled “Properties”Gets a glyph definition that has -1 for the glyph.
public static GlyphDefinition Empty { get; }The glyph of the decorator.
public int Glyph { get; init; }Mirror
Section titled “Mirror”The mirror effect of the decorator.
public Mirror Mirror { get; init; }Methods
Section titled “Methods”CreateCellDecorator(Color)
Section titled “CreateCellDecorator(Color)”Creates a CellDecorator from this definition.
public CellDecorator CreateCellDecorator(Color foreground)Parameters
Section titled “Parameters”foreground SadRogue.Primitives.Color
The color of the decorator.
Returns
Section titled “Returns”CellDecorator
A new decorator instance.
CreateCell(Color, Color)
Section titled “CreateCell(Color, Color)”Creates a ColoredGlyphBase from this definition.
public ColoredGlyphBase CreateCell(Color foreground, Color background)Parameters
Section titled “Parameters”foreground SadRogue.Primitives.Color
The foreground color of the cell.
background SadRogue.Primitives.Color
The background color of the cell.
Returns
Section titled “Returns”ColoredGlyphBase
A new cell instance.