|
|
@ -16,12 +16,6 @@ namespace Avalonia |
|
|
Animation.Animation.RegisterAnimator<RectAnimator>(prop => typeof(Rect).IsAssignableFrom(prop.PropertyType)); |
|
|
Animation.Animation.RegisterAnimator<RectAnimator>(prop => typeof(Rect).IsAssignableFrom(prop.PropertyType)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// An empty rectangle.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Obsolete("Use the default keyword instead.")] |
|
|
|
|
|
public static readonly Rect Empty = default; |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// The X position.
|
|
|
/// The X position.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
@ -177,10 +171,6 @@ namespace Avalonia |
|
|
public bool IsDefault => _width == 0 && _height == 0; |
|
|
public bool IsDefault => _width == 0 && _height == 0; |
|
|
// ReSharper restore CompareOfFloatsByEqualityOperator
|
|
|
// ReSharper restore CompareOfFloatsByEqualityOperator
|
|
|
|
|
|
|
|
|
/// <inheritdoc cref="IsDefault"/>
|
|
|
|
|
|
[Obsolete("Use IsDefault instead.")] |
|
|
|
|
|
public bool IsEmpty => IsDefault; |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Checks for equality between two <see cref="Rect"/>s.
|
|
|
/// Checks for equality between two <see cref="Rect"/>s.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
|