Update all model classes to Electron API 39.2

This commit is contained in:
softworkz
2025-11-22 02:16:10 +01:00
parent 1d554fda60
commit 6761119241
114 changed files with 1527 additions and 499 deletions

View File

@@ -3,10 +3,11 @@
/// <summary>
///
/// </summary>
/// <remarks>Up-to-date with Electron API 39.2</remarks>
public class Display
{
/// <summary>
/// Can be available, unavailable, unknown.
/// Gets or sets the accelerometer support status; can be 'available', 'unavailable', or 'unknown'.
/// </summary>
public string AccelerometerSupport { get; set; }
@@ -19,57 +20,72 @@
public Rectangle Bounds { get; set; }
/// <summary>
/// The number of bits per pixel.
/// Gets or sets the number of bits per pixel.
/// </summary>
public int ColorDepth { get; set; }
/// <summary>
/// Represent a color space (three-dimensional object which contains all realizable color combinations) for the purpose of color conversions.
/// Gets or sets the color space description used for color conversions.
/// </summary>
public string ColorSpace { get; set; }
/// <summary>
/// The number of bits per color component.
/// Gets or sets the number of bits per color component.
/// </summary>
public int DepthPerComponent { get; set; }
/// <summary>
/// The display refresh rate.
/// Gets or sets a value indicating whether the display is detected by the system.
/// </summary>
public int DisplayFrequency { get; set; }
public bool Detected { get; set; }
/// <summary>
/// Unique identifier associated with the display.
/// 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.
/// </summary>
public long Id { get; set; }
/// <summary>
/// true for an internal display and false for an external display.
/// Gets or sets a value indicating whether the display is internal (true) or external (false).
/// </summary>
public bool Internal { get; set; }
/// <summary>
/// User-friendly label, determined by the platform.
/// Gets or sets the user-friendly label, determined by the platform.
/// </summary>
public string Label { get; set; }
/// <summary>
/// Can be 0, 90, 180, 270, represents screen rotation in clock-wise degrees.
/// 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.
/// </summary>
public int Rotation { get; set; }
/// <summary>
/// Output device's pixel scale factor.
/// Gets or sets the output device's pixel scale factor.
/// </summary>
public double ScaleFactor { get; set; }
/// <summary>
/// Can be available, unavailable, unknown.
/// Gets or sets the touch support status; can be 'available', 'unavailable', or 'unknown'.
/// </summary>
public string TouchSupport { get; set; }
/// <summary>
/// Whether or not the display is a monochrome display.
/// Gets or sets a value indicating whether the display is monochrome.
/// </summary>
public bool Monochrome { get; set; }
@@ -82,10 +98,10 @@
public Size Size { get; set; }
/// <summary>
/// Gets or sets the work area.
/// Gets or sets the work area of the display in DIP points.
/// </summary>
/// <value>
/// The work area.
/// The work area of the display in DIP points.
/// </value>
public Rectangle WorkArea { get; set; }