Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Display.cs to current spec #828

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 46 additions & 6 deletions src/ElectronNET.API/Entities/Display.cs
Original file line number Diff line number Diff line change
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
Loading