mirror of https://github.com/dahall/Vanara.git
Added Point.x and y properties to match some C++ implementations
parent
7407e1fe84
commit
5107816310
|
@ -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>
|
/// <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>
|
/// <value><see langword="true"/> if both X and Y are 0; otherwise, <see langword="false"/>.</value>
|
||||||
|
[NonSerialized]
|
||||||
[Browsable(false)]
|
[Browsable(false)]
|
||||||
public bool IsEmpty => X == 0 && Y == 0;
|
public bool IsEmpty => X == 0 && Y == 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue