mirror of
https://github.com/spectreconsole/spectre.console.git
synced 2025-12-27 00:08:02 +01:00
* Add width to panels * Add height to panels * Replace RenderContext with RenderOptions * Remove exclusivity from alternative buffer * Add Layout widget * Add Align widget
11 lines
318 B
C#
11 lines
318 B
C#
namespace Spectre.Console;
|
|
|
|
internal static class RenderOptionsExtensions
|
|
{
|
|
public static BoxBorder GetSafeBorder<T>(this RenderOptions options, T border)
|
|
where T : IHasBoxBorder, IHasBorder
|
|
{
|
|
return BoxExtensions.GetSafeBorder(border.Border, !options.Unicode && border.UseSafeBorder);
|
|
}
|
|
}
|