Skip to content

Commit f31fe19

Browse files
authored
Merge pull request #828 from Yuvix25/yuvix25/update-display-object
Update Display.cs to current spec
2 parents 0a80367 + b8b634b commit f31fe19

File tree

1 file changed

+46
-6
lines changed

1 file changed

+46
-6
lines changed

src/ElectronNET.API/Entities/Display.cs

Lines changed: 46 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,54 @@
55
/// </summary>
66
public class Display
77
{
8+
/// <summary>
9+
/// Can be available, unavailable, unknown.
10+
/// </summary>
11+
public string AccelerometerSupport { get; set; }
12+
813
/// <summary>
914
/// Gets or sets the bounds.
1015
/// </summary>
1116
/// <value>
12-
/// The bounds.
17+
/// The bounds of the display in DIP points.
1318
/// </value>
1419
public Rectangle Bounds { get; set; }
1520

21+
/// <summary>
22+
/// The number of bits per pixel.
23+
/// </summary>
24+
public int ColorDepth { get; set; }
25+
26+
/// <summary>
27+
/// Represent a color space (three-dimensional object which contains all realizable color combinations) for the purpose of color conversions.
28+
/// </summary>
29+
public string ColorSpace { get; set; }
30+
31+
/// <summary>
32+
/// The number of bits per color component.
33+
/// </summary>
34+
public int DepthPerComponent { get; set; }
35+
36+
/// <summary>
37+
/// The display refresh rate.
38+
/// </summary>
39+
public int DisplayFrequency { get; set; }
40+
1641
/// <summary>
1742
/// Unique identifier associated with the display.
1843
/// </summary>
1944
public string Id { get; set; }
2045

46+
/// <summary>
47+
/// true for an internal display and false for an external display.
48+
/// </summary>
49+
public bool Internal { get; set; }
50+
51+
/// <summary>
52+
/// User-friendly label, determined by the platform.
53+
/// </summary>
54+
public string Label { get; set; }
55+
2156
/// <summary>
2257
/// Can be 0, 90, 180, 270, represents screen rotation in clock-wise degrees.
2358
/// </summary>
@@ -28,6 +63,16 @@ public class Display
2863
/// </summary>
2964
public int ScaleFactor { get; set; }
3065

66+
/// <summary>
67+
/// Can be available, unavailable, unknown.
68+
/// </summary>
69+
public string TouchSupport { get; set; }
70+
71+
/// <summary>
72+
/// Whether or not the display is a monochrome display.
73+
/// </summary>
74+
public bool Monochrome { get; set; }
75+
3176
/// <summary>
3277
/// Gets or sets the size.
3378
/// </summary>
@@ -36,11 +81,6 @@ public class Display
3681
/// </value>
3782
public Size Size { get; set; }
3883

39-
/// <summary>
40-
/// Can be available, unavailable, unknown.
41-
/// </summary>
42-
public string TouchSupport { get; set; }
43-
4484
/// <summary>
4585
/// Gets or sets the work area.
4686
/// </summary>

0 commit comments

Comments
 (0)