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