Skip to content

Commit

Permalink
Merge pull request #828 from Yuvix25/yuvix25/update-display-object
Browse files Browse the repository at this point in the history
Update Display.cs to current spec
  • Loading branch information
FlorianRappl committed Feb 14, 2024
2 parents 0a80367 + b8b634b commit f31fe19
Showing 1 changed file with 46 additions and 6 deletions.
52 changes: 46 additions & 6 deletions src/ElectronNET.API/Entities/Display.cs
Expand Up @@ -5,19 +5,54 @@
/// </summary>
public class Display
{
/// <summary>
/// Can be available, unavailable, unknown.
/// </summary>
public string AccelerometerSupport { get; set; }

/// <summary>
/// Gets or sets the bounds.
/// </summary>
/// <value>
/// The bounds.
/// The bounds of the display in DIP points.
/// </value>
public Rectangle Bounds { get; set; }

/// <summary>
/// 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.
/// </summary>
public string ColorSpace { get; set; }

/// <summary>
/// The number of bits per color component.
/// </summary>
public int DepthPerComponent { get; set; }

/// <summary>
/// The display refresh rate.
/// </summary>
public int DisplayFrequency { get; set; }

/// <summary>
/// Unique identifier associated with the display.
/// </summary>
public string Id { get; set; }

/// <summary>
/// true for an internal display and false for an external display.
/// </summary>
public bool Internal { get; set; }

/// <summary>
/// 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.
/// </summary>
Expand All @@ -28,6 +63,16 @@ public class Display
/// </summary>
public int ScaleFactor { get; set; }

/// <summary>
/// Can be available, unavailable, unknown.
/// </summary>
public string TouchSupport { get; set; }

/// <summary>
/// Whether or not the display is a monochrome display.
/// </summary>
public bool Monochrome { get; set; }

/// <summary>
/// Gets or sets the size.
/// </summary>
Expand All @@ -36,11 +81,6 @@ public class Display
/// </value>
public Size Size { get; set; }

/// <summary>
/// Can be available, unavailable, unknown.
/// </summary>
public string TouchSupport { get; set; }

/// <summary>
/// Gets or sets the work area.
/// </summary>
Expand Down

0 comments on commit f31fe19

Please sign in to comment.