Canvas.cs 848 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace Terminal.Gui.Core {
  7. /// <summary>
  8. /// The <see cref="Canvas"/> is a <see cref="Responder"/> that can be used to draw on the screen.
  9. /// It is the base class of <see cref="View"/> and <see cref="Frame"/>.
  10. /// </summary>
  11. public class Canvas : Responder {
  12. /// <summary>
  13. /// Initializes a new instance of the <see cref="Canvas"/> class.
  14. /// </summary>
  15. public Canvas () : this (Rect.Empty) {}
  16. /// <summary>
  17. /// Initializes a new instance of the <see cref="Canvas"/> class.
  18. /// </summary>
  19. /// <param name="frame">The <see cref="Rect"/> that defines the position and size of the <see cref="Canvas"/> on the screen.</param>
  20. /// relative coordinates.</param>
  21. public Canvas (Rect frame)
  22. {
  23. }
  24. }
  25. }