using System.Collections.Generic; using System.Text; namespace Spectre.Console.Composition { /// /// Represents something that can be rendered to the console. /// public interface IRenderable { /// /// Measures the renderable object. /// /// The encoding to use. /// The maximum allowed width. /// The width of the object. int Measure(Encoding encoding, int maxWidth); /// /// Renders the object. /// /// The encoding to use. /// The width of the render area. /// A collection of segments. IEnumerable Render(Encoding encoding, int width); } }