mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-07-01 10:28:16 +08:00
Add Layout widget (#1041)
* Add width to panels * Add height to panels * Replace RenderContext with RenderOptions * Remove exclusivity from alternative buffer * Add Layout widget * Add Align widget
This commit is contained in:
@ -83,14 +83,14 @@ internal sealed class Composer : IRenderable
|
||||
return this;
|
||||
}
|
||||
|
||||
public Measurement Measure(RenderContext context, int maxWidth)
|
||||
public Measurement Measure(RenderOptions options, int maxWidth)
|
||||
{
|
||||
return ((IRenderable)new Markup(_content.ToString())).Measure(context, maxWidth);
|
||||
return ((IRenderable)new Markup(_content.ToString())).Measure(options, maxWidth);
|
||||
}
|
||||
|
||||
public IEnumerable<Segment> Render(RenderContext context, int maxWidth)
|
||||
public IEnumerable<Segment> Render(RenderOptions options, int maxWidth)
|
||||
{
|
||||
return ((IRenderable)new Markup(_content.ToString())).Render(context, maxWidth);
|
||||
return ((IRenderable)new Markup(_content.ToString())).Render(options, maxWidth);
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
|
Reference in New Issue
Block a user