mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-07-09 18:27:36 +00:00
ElectronNET.API: Move API code to subfolder
This commit is contained in:
33
src/ElectronNET.API/API/Entities/Point.cs
Normal file
33
src/ElectronNET.API/API/Entities/Point.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
namespace ElectronNET.API.Entities
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class Point
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the x.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The x.
|
||||
/// </value>
|
||||
public int X { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the y.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The y.
|
||||
/// </value>
|
||||
public int Y { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Convert this <see cref="Point"/> to <see cref="System.Drawing.Point"/>.
|
||||
/// </summary>
|
||||
/// <param name="point">The point.</param>
|
||||
public static implicit operator System.Drawing.Point(Point point)
|
||||
{
|
||||
return new System.Drawing.Point(point.X, point.Y);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user