2017-10-24 21:43:27 +02:00
|
|
|
|
namespace ElectronNET.API.Entities
|
2017-10-23 19:08:10 +02:00
|
|
|
|
{
|
2021-07-12 21:27:40 +02:00
|
|
|
|
public class DisplayChanged
|
|
|
|
|
|
{
|
|
|
|
|
|
public Display display { get; set; }
|
|
|
|
|
|
public string[] metrics { get; set; }
|
|
|
|
|
|
}
|
2017-10-23 19:08:10 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
///
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class Display
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
2017-10-24 21:43:27 +02:00
|
|
|
|
/// Gets or sets the bounds.
|
2017-10-23 19:08:10 +02:00
|
|
|
|
/// </summary>
|
2017-10-24 21:43:27 +02:00
|
|
|
|
/// <value>
|
|
|
|
|
|
/// The bounds.
|
|
|
|
|
|
/// </value>
|
2017-10-23 19:08:10 +02:00
|
|
|
|
public Rectangle Bounds { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Unique identifier associated with the display.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string Id { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Can be 0, 90, 180, 270, represents screen rotation in clock-wise degrees.
|
|
|
|
|
|
/// </summary>
|
2021-09-02 16:34:20 +02:00
|
|
|
|
public float Rotation { get; set; }
|
2017-10-23 19:08:10 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Output device's pixel scale factor.
|
|
|
|
|
|
/// </summary>
|
2021-09-02 16:34:20 +02:00
|
|
|
|
public float ScaleFactor { get; set; }
|
2017-10-23 19:08:10 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2017-10-24 21:43:27 +02:00
|
|
|
|
/// Gets or sets the size.
|
2017-10-23 19:08:10 +02:00
|
|
|
|
/// </summary>
|
2017-10-24 21:43:27 +02:00
|
|
|
|
/// <value>
|
|
|
|
|
|
/// The size.
|
|
|
|
|
|
/// </value>
|
2017-10-23 19:08:10 +02:00
|
|
|
|
public Size Size { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Can be available, unavailable, unknown.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string TouchSupport { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2017-10-24 21:43:27 +02:00
|
|
|
|
/// Gets or sets the work area.
|
2017-10-23 19:08:10 +02:00
|
|
|
|
/// </summary>
|
2017-10-24 21:43:27 +02:00
|
|
|
|
/// <value>
|
|
|
|
|
|
/// The work area.
|
|
|
|
|
|
/// </value>
|
2017-10-23 19:08:10 +02:00
|
|
|
|
public Rectangle WorkArea { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2017-10-24 21:43:27 +02:00
|
|
|
|
/// Gets or sets the size of the work area.
|
2017-10-23 19:08:10 +02:00
|
|
|
|
/// </summary>
|
2017-10-24 21:43:27 +02:00
|
|
|
|
/// <value>
|
|
|
|
|
|
/// The size of the work area.
|
|
|
|
|
|
/// </value>
|
2017-10-23 19:08:10 +02:00
|
|
|
|
public Size WorkAreaSize { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|