Vixen
02b45cc4
csharp
public record class DisplayInfo

One display, as the platform describes it.

No guide page documents this yet — the page shows what the code says about itself.

Fields and properties (9)

  • public int Index

    Its position in Displays, stable until a DisplaysChanged.

  • public string Name

    A human-readable name, for a settings screen.

  • public Rectangle Bounds

    Its position and size in the desktop's coordinate space, in logical points.

  • public Rectangle WorkArea

    The part of not covered by a taskbar, dock or menu bar — where a window should be placed.

  • public float DpiScale

    Physical pixels per logical point.

  • public DisplayMode CurrentMode

    The mode it is running now.

  • public IReadOnlyList<DisplayMode> Modes

    Every mode it can be switched to, or empty where the platform does not allow mode switching.

  • public bool IsPrimary

    Whether this is the display the OS considers the main one.

  • public bool SupportsHdr

    Whether any of this display's modes carries an HDR signal.

Methods (2)

  • public DisplayInfo(int Index, string Name, Rectangle Bounds, Rectangle WorkArea, float DpiScale, DisplayMode CurrentMode, IReadOnlyList<DisplayMode> Modes, bool IsPrimary)

    One display, as the platform describes it.

  • public override string ToString()

    Returns a string that represents the current object.

Used by (5)

  • DesktopDisplaysVixen.Platform.Desktop
  • HeadlessDisplaysVixen.Platform.Headless
  • IDisplayInfoVixen.Platform
  • PlatformWindowHostVixen.Platform.Ui
  • WindowReachabilityTestsVixen.Platform.Ui.Tests