|
@@ -132,6 +132,8 @@ namespace Terminal.Gui {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ // TODO: Unless there's an obvious use case for this API we should delete it in favor of the
|
|
|
+ // simpler version that doensn't take an area.
|
|
|
/// <summary>
|
|
|
/// Evaluates the lines that have been added to the canvas and returns a map containing
|
|
|
/// the glyphs and their locations. The glyphs are the characters that should be rendered
|
|
@@ -168,8 +170,7 @@ namespace Terminal.Gui {
|
|
|
/// the glyphs and their locations. The glyphs are the characters that should be rendered
|
|
|
/// so that all lines connect up with the appropriate intersection symbols.
|
|
|
/// </summary>
|
|
|
- /// <param name="inArea">A rectangle to constrain the search by.</param>
|
|
|
- /// <returns>A map of the points within the canvas that intersect with <paramref name="inArea"/>.</returns>
|
|
|
+ /// <returns>A map of all the points within the canvas.</returns>
|
|
|
public Dictionary<Point, Cell> GetCellMap ()
|
|
|
{
|
|
|
var map = new Dictionary<Point, Cell> ();
|
|
@@ -392,19 +393,24 @@ namespace Terminal.Gui {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ /// <summary>
|
|
|
+ /// Represents a single row/column within the <see cref="LineCanvas"/>. Includes the glyph and the foreground/background colors.
|
|
|
+ /// </summary>
|
|
|
public class Cell
|
|
|
{
|
|
|
- public Cell ()
|
|
|
- {
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
+ /// <summary>
|
|
|
+ /// The glyph to draw.
|
|
|
+ /// </summary>
|
|
|
public Rune? Rune { get; set; }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// The foreground color to draw the glyph with.
|
|
|
+ /// </summary>
|
|
|
public Attribute? Attribute { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
- private Cell? GetCellForIntersects (ConsoleDriver driver, IntersectionDefinition [] intersects)
|
|
|
+ private Cell GetCellForIntersects (ConsoleDriver driver, IntersectionDefinition [] intersects)
|
|
|
{
|
|
|
if (!intersects.Any ()) {
|
|
|
return null;
|