using System.Collections.Generic; namespace Spectre.Console.Rendering { /// /// Represents something that can be rendered to the console. /// public interface IRenderable { /// /// Measures the renderable object. /// /// The render context. /// The maximum allowed width. /// The minimum and maximum width of the object. Measurement Measure(RenderContext context, int maxWidth); /// /// Renders the object. /// /// The render context. /// The maximum allowed width. /// A collection of segments. IEnumerable Render(RenderContext context, int maxWidth); } }