Cell.cs 934 B

1234567891011121314151617181920212223242526272829
  1. using System.Collections.Generic;
  2. using System.Text;
  3. namespace Terminal.Gui;
  4. /// <summary>
  5. /// Represents a single row/column in a Terminal.Gui rendering surface
  6. /// (e.g. <see cref="LineCanvas"/> and <see cref="ConsoleDriver"/>).
  7. /// </summary>
  8. public class Cell {
  9. /// <summary>
  10. /// The list of Runes to draw in this cell. If the list is empty, the cell is blank. If the list contains
  11. /// more than one Rune, the cell is a combining sequence.
  12. /// (See #2616 - Support combining sequences that don't normalize)
  13. /// </summary>
  14. public List<Rune> Runes { get; set; } = new List<Rune> ();
  15. /// <summary>
  16. /// The attributes to use when drawing the Glyph.
  17. /// </summary>
  18. public Attribute? Attribute { get; set; }
  19. /// <summary>
  20. /// Gets or sets a value indicating whether this <see cref="T:Terminal.Gui.Cell"/> has
  21. /// been modified since the last time it was drawn.
  22. /// </summary>
  23. public bool IsDirty { get; set; }
  24. }