From b8b634beb322a398e281ac3e358e835280bde356 Mon Sep 17 00:00:00 2001 From: Yuval Rosen Date: Wed, 10 Jan 2024 11:10:49 +0200 Subject: [PATCH] update display.cs to current spec --- src/ElectronNET.API/Entities/Display.cs | 52 ++++++++++++++++++++++--- 1 file changed, 46 insertions(+), 6 deletions(-) diff --git a/src/ElectronNET.API/Entities/Display.cs b/src/ElectronNET.API/Entities/Display.cs index cdf9ac87..7b35a95f 100644 --- a/src/ElectronNET.API/Entities/Display.cs +++ b/src/ElectronNET.API/Entities/Display.cs @@ -5,19 +5,54 @@ /// public class Display { + /// + /// Can be available, unavailable, unknown. + /// + public string AccelerometerSupport { get; set; } + /// /// Gets or sets the bounds. /// /// - /// The bounds. + /// The bounds of the display in DIP points. /// public Rectangle Bounds { get; set; } + /// + /// The number of bits per pixel. + /// + public int ColorDepth { get; set; } + + /// + /// Represent a color space (three-dimensional object which contains all realizable color combinations) for the purpose of color conversions. + /// + public string ColorSpace { get; set; } + + /// + /// The number of bits per color component. + /// + public int DepthPerComponent { get; set; } + + /// + /// The display refresh rate. + /// + public int DisplayFrequency { get; set; } + /// /// Unique identifier associated with the display. /// public string Id { get; set; } + /// + /// true for an internal display and false for an external display. + /// + public bool Internal { get; set; } + + /// + /// User-friendly label, determined by the platform. + /// + public string Label { get; set; } + /// /// Can be 0, 90, 180, 270, represents screen rotation in clock-wise degrees. /// @@ -28,6 +63,16 @@ public class Display /// public int ScaleFactor { get; set; } + /// + /// Can be available, unavailable, unknown. + /// + public string TouchSupport { get; set; } + + /// + /// Whether or not the display is a monochrome display. + /// + public bool Monochrome { get; set; } + /// /// Gets or sets the size. /// @@ -36,11 +81,6 @@ public class Display /// public Size Size { get; set; } - /// - /// Can be available, unavailable, unknown. - /// - public string TouchSupport { get; set; } - /// /// Gets or sets the work area. ///