#nullable enable
namespace Terminal.Gui;
///
/// Represents an absolute position in the layout. This is used to specify a fixed position in the layout.
///
///
///
/// 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 class PosAbsolute (int position) : Pos
{
///
/// The position of the in the layout.
///
public int Position { get; } = position;
///
public override bool Equals (object? other) { return other is PosAbsolute abs && abs.Position == Position; }
///
public override int GetHashCode () { return Position.GetHashCode (); }
///
public override string ToString () { return $"Absolute({Position})"; }
internal override int GetAnchor (int size) { return Position; }
}