#nullable enable namespace Terminal.Gui; /// /// Represents a position that is computed by executing a function that returns an integer position. /// /// The function that computes the dimension. If this function throws ... public record PosFunc (Func Fn) : Pos { /// public override string ToString () { return $"PosFunc({Fn ()})"; } internal override int GetAnchor (int size) { return Fn (); } }