2017-10-24 21:43:27 +02:00
namespace ElectronNET.API.Entities
2017-10-23 19:08:10 +02:00
{
/// <summary>
///
/// </summary>
2025-11-22 02:16:10 +01:00
/// <remarks>Up-to-date with Electron API 39.2</remarks>
2017-10-23 19:08:10 +02:00
public class Display
{
2024-01-10 11:10:49 +02:00
/// <summary>
2025-11-22 02:16:10 +01:00
/// Gets or sets the accelerometer support status; can be 'available', 'unavailable', or 'unknown'.
2024-01-10 11:10:49 +02:00
/// </summary>
public string AccelerometerSupport { get ; set ; }
2017-10-23 19:08:10 +02:00
/// <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>
2024-01-10 11:10:49 +02:00
/// The bounds of the display in DIP points.
2017-10-24 21:43:27 +02:00
/// </value>
2017-10-23 19:08:10 +02:00
public Rectangle Bounds { get ; set ; }
2024-01-10 11:10:49 +02:00
/// <summary>
2025-11-22 02:16:10 +01:00
/// Gets or sets the number of bits per pixel.
2024-01-10 11:10:49 +02:00
/// </summary>
public int ColorDepth { get ; set ; }
/// <summary>
2025-11-22 02:16:10 +01:00
/// Gets or sets the color space description used for color conversions.
2024-01-10 11:10:49 +02:00
/// </summary>
public string ColorSpace { get ; set ; }
/// <summary>
2025-11-22 02:16:10 +01:00
/// Gets or sets the number of bits per color component.
2024-01-10 11:10:49 +02:00
/// </summary>
public int DepthPerComponent { get ; set ; }
/// <summary>
2025-11-22 02:16:10 +01:00
/// Gets or sets a value indicating whether the display is detected by the system.
2024-01-10 11:10:49 +02:00
/// </summary>
2025-11-22 02:16:10 +01:00
public bool Detected { get ; set ; }
2024-01-10 11:10:49 +02:00
2017-10-23 19:08:10 +02:00
/// <summary>
2025-11-22 02:16:10 +01:00
/// Gets or sets the display refresh rate.
/// </summary>
public double DisplayFrequency { get ; set ; }
/// <summary>
/// Gets or sets the unique identifier associated with the display. A value of -1 means the display is invalid or the correct id is not yet known, and a value of -10 means the display is a virtual display assigned to a unified desktop.
2017-10-23 19:08:10 +02:00
/// </summary>
2025-11-09 12:05:07 +01:00
public long Id { get ; set ; }
2017-10-23 19:08:10 +02:00
2024-01-10 11:10:49 +02:00
/// <summary>
2025-11-22 02:16:10 +01:00
/// Gets or sets a value indicating whether the display is internal (true) or external (false).
2024-01-10 11:10:49 +02:00
/// </summary>
public bool Internal { get ; set ; }
/// <summary>
2025-11-22 02:16:10 +01:00
/// Gets or sets the user-friendly label, determined by the platform.
2024-01-10 11:10:49 +02:00
/// </summary>
public string Label { get ; set ; }
2017-10-23 19:08:10 +02:00
/// <summary>
2025-11-22 02:16:10 +01:00
/// Gets or sets the maximum cursor size in native pixels.
/// </summary>
public Size MaximumCursorSize { get ; set ; }
/// <summary>
/// Gets or sets the display's origin in pixel coordinates. Only available on windowing systems that position displays in pixel coordinates (e.g., X11).
/// </summary>
public Point NativeOrigin { get ; set ; }
/// <summary>
/// Gets or sets the screen rotation in clock-wise degrees. Can be 0, 90, 180, or 270.
2017-10-23 19:08:10 +02:00
/// </summary>
public int Rotation { get ; set ; }
/// <summary>
2025-11-22 02:16:10 +01:00
/// Gets or sets the output device's pixel scale factor.
2017-10-23 19:08:10 +02:00
/// </summary>
2025-11-10 10:40:19 +01:00
public double ScaleFactor { get ; set ; }
2017-10-23 19:08:10 +02:00
2024-01-10 11:10:49 +02:00
/// <summary>
2025-11-22 02:16:10 +01:00
/// Gets or sets the touch support status; can be 'available', 'unavailable', or 'unknown'.
2024-01-10 11:10:49 +02:00
/// </summary>
public string TouchSupport { get ; set ; }
/// <summary>
2025-11-22 02:16:10 +01:00
/// Gets or sets a value indicating whether the display is monochrome.
2024-01-10 11:10:49 +02:00
/// </summary>
public bool Monochrome { 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>
2025-11-22 02:16:10 +01:00
/// Gets or sets the work area of the display in DIP points.
2017-10-23 19:08:10 +02:00
/// </summary>
2017-10-24 21:43:27 +02:00
/// <value>
2025-11-22 02:16:10 +01:00
/// The work area of the display in DIP points.
2017-10-24 21:43:27 +02:00
/// </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 ; }
}
}