#nullable enable
namespace Terminal.Gui;
///
/// Represents a dimension that fills the dimension, leaving the specified margin.
///
///
/// This is a low-level API that is typically used internally by the layout system. Use the various static
/// methods on the class to create objects instead.
///
/// The margin to not fill.
public record DimFill (int Margin) : Dim
{
///
public override string ToString () { return $"Fill({Margin})"; }
internal override int GetAnchor (int size) { return size - Margin; }
}