Skip to main content
Version: 1.0.0-preview.37

Velaptor.Hardware.SystemDisplay

Velaptor

Velaptor.Hardware

SystemDisplay Struct

Holds information about a single display in the system.

public readonly struct SystemDisplay :
System.IEquatable<Velaptor.Hardware.SystemDisplay>

Implements System.IEquatable<SystemDisplay>

Constructors

SystemDisplay() Constructor

Initializes a new instance of the SystemDisplay class.

public SystemDisplay();

Properties

BlueBitDepth

Gets the bit depth of the blue color channel in the current video mode.

public int BlueBitDepth { get; set; }

Property Value

System.Int32

Center

Gets the center location of the display.

public System.Numerics.Vector2 Center { get; }

Property Value

System.Numerics.Vector2

GreenBitDepth

Gets the bit depth of the green color channel in the current video mode.

public int GreenBitDepth { get; set; }

Property Value

System.Int32

Height

Gets the height in screen coordinates in the current video mode.

public int Height { get; set; }

Property Value

System.Int32

HorizontalDPI

Gets the approximate dpi of the display on the horizontal axis.

public float HorizontalDPI { get; }

Property Value

System.Single

HorizontalScale

Gets the scale of the display on the horizontal axis.

public float HorizontalScale { get; set; }

Property Value

System.Single

Remarks

If the display was set to a scale of 150%, this value of 1.5 should be used.

IsMain

Gets a value indicating whether the display is the primary display in the system.

public bool IsMain { get; set; }

Property Value

System.Boolean

RedBitDepth

Gets the bit depth of the red color channel in the current video mode.

public int RedBitDepth { get; set; }

Property Value

System.Int32

RefreshRate

Gets the refresh rate in Hz in the current video mode.

public int RefreshRate { get; set; }

Property Value

System.Int32

VerticalDPI

Gets the approximate dpi of the display on the vertical axis.

public float VerticalDPI { get; }

Property Value

System.Single

VerticalScale

Gets the scale of the display on the vertical axis.

public float VerticalScale { get; set; }

Property Value

System.Single

Remarks

If the display was set to a scale of 150%, this value of 1.5 should be used.

Width

Gets the width in screen coordinates in the current video mode.

public int Width { get; set; }

Property Value

System.Int32