|
@@ -8,7 +8,7 @@ namespace Terminal.Gui;
|
|
/// This is a low-level API that is typically used internally by the layout system. Use the various static
|
|
/// This is a low-level API that is typically used internally by the layout system. Use the various static
|
|
/// methods on the <see cref="Dim"/> class to create <see cref="Dim"/> objects instead.
|
|
/// methods on the <see cref="Dim"/> class to create <see cref="Dim"/> objects instead.
|
|
/// </remarks>
|
|
/// </remarks>
|
|
-public class DimView : Dim
|
|
|
|
|
|
+public record DimView : Dim
|
|
{
|
|
{
|
|
/// <summary>
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="DimView"/> class.
|
|
/// Initializes a new instance of the <see cref="DimView"/> class.
|
|
@@ -26,12 +26,6 @@ public class DimView : Dim
|
|
/// </summary>
|
|
/// </summary>
|
|
public Dimension Dimension { get; }
|
|
public Dimension Dimension { get; }
|
|
|
|
|
|
- /// <inheritdoc/>
|
|
|
|
- public override bool Equals (object? other) { return other is DimView abs && abs.Target == Target && abs.Dimension == Dimension; }
|
|
|
|
-
|
|
|
|
- /// <inheritdoc/>
|
|
|
|
- public override int GetHashCode () { return Target!.GetHashCode (); }
|
|
|
|
-
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
/// Gets the View the dimension is anchored to.
|
|
/// Gets the View the dimension is anchored to.
|
|
/// </summary>
|
|
/// </summary>
|