2017-10-15 21:39:52 +02:00
|
|
|
|
namespace ElectronNET.API.Entities
|
|
|
|
|
|
{
|
2017-10-24 21:43:27 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
///
|
|
|
|
|
|
/// </summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// <remarks>Up-to-date with Electron API 39.2</remarks>
|
2017-10-15 21:39:52 +02:00
|
|
|
|
public class Rectangle
|
|
|
|
|
|
{
|
2017-10-24 21:43:27 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets the x.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <value>
|
|
|
|
|
|
/// The x.
|
|
|
|
|
|
/// </value>
|
2017-10-15 21:39:52 +02:00
|
|
|
|
public int X { get; set; }
|
2017-10-24 21:43:27 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets the y.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <value>
|
|
|
|
|
|
/// The y.
|
|
|
|
|
|
/// </value>
|
2017-10-15 21:39:52 +02:00
|
|
|
|
public int Y { get; set; }
|
2017-10-24 21:43:27 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets the width.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <value>
|
|
|
|
|
|
/// The width.
|
|
|
|
|
|
/// </value>
|
2017-10-15 21:39:52 +02:00
|
|
|
|
public int Width { get; set; }
|
2017-10-24 21:43:27 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets the height.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <value>
|
|
|
|
|
|
/// The height.
|
|
|
|
|
|
/// </value>
|
2017-10-15 21:39:52 +02:00
|
|
|
|
public int Height { get; set; }
|
2023-08-24 21:09:19 -04:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Convert this <see cref="Rectangle"/> to <see cref="System.Drawing.Rectangle"/>.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="rectangle">The rectangle.</param>
|
|
|
|
|
|
public static implicit operator System.Drawing.Rectangle(Rectangle rectangle)
|
|
|
|
|
|
{
|
|
|
|
|
|
return new System.Drawing.Rectangle(rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height);
|
|
|
|
|
|
}
|
2017-10-15 21:39:52 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|