using System; using System.Text; namespace Terminal.Gui { /// /// Describes how to render a single row/column of a based /// on the value(s) in at that location /// public class GraphCellToRender { /// /// The character to render in the console /// public Rune Rune { get; set; } /// /// Optional color to render the with /// public Attribute? Color { get; set; } /// /// Creates instance and sets with default graph coloring /// /// public GraphCellToRender (Rune rune) { Rune = rune; } /// /// Creates instance and sets with custom graph coloring /// /// /// public GraphCellToRender (Rune rune, Attribute color) : this (rune) { Color = color; } /// /// Creates instance and sets and (or default if null) /// public GraphCellToRender (Rune rune, Attribute? color) : this (rune) { Color = color; } } }