#nullable enable namespace Terminal.Gui; /// /// Represents a function object that computes the dimension by executing the provided function. /// /// /// 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. /// /// public record DimFunc (Func Dim) : Dim { /// /// Gets the function that computes the dimension. /// public new Func Func { get; } = Dim; /// public override int GetHashCode () { return Func.GetHashCode (); } /// public override string ToString () { return $"DimFunc({Func ()})"; } internal override int GetAnchor (int size) { return Func (); } }