Added Point.x and y properties to match some C++ implementations

pull/372/head
David Hall 2023-01-16 20:51:13 -07:00
parent 7407e1fe84
commit 5107816310
1 changed files with 9 additions and 0 deletions

View File

@ -55,8 +55,17 @@ namespace Vanara.PInvoke
}
}
/// <summary>Specifies the <c>x</c>-coordinate of the point.</summary>
[NonSerialized]
public int x { get => x; set => x = value; }
/// <summary>Specifies the <c>y</c>-coordinate of the point.</summary>
[NonSerialized]
public int y { get => y; set => y = value; }
/// <summary>Gets a value indicating whether this <see cref="POINT"/> is empty.</summary>
/// <value><see langword="true"/> if both X and Y are 0; otherwise, <see langword="false"/>.</value>
[NonSerialized]
[Browsable(false)]
public bool IsEmpty => X == 0 && Y == 0;