Documentation
On this page

Interface · Desktop Services

DesktopDisplayInfo

Native desktop display information.

@sharpts/gui 0.0.0-local · SharpTS 7c6010104a43

Members

bounds

bounds: DesktopDisplayBounds

Full display bounds in physical desktop pixels.

Type: DesktopDisplayBounds

boundsSize

boundsSize: DesktopDisplaySize

Full display size in device-independent pixels.

Type: DesktopDisplaySize

isPrimary

isPrimary: boolean

Whether this is the primary display.

Type: boolean

name

name: string

Operating-system display name.

Type: string

orientation

orientation: "none" | "landscape" | "portrait" | "landscapeflipped" | "portraitflipped"

Current native display orientation.

Values: "none", "landscape", "portrait", "landscapeflipped", "portraitflipped"

Type: "none" | "landscape" | "portrait" | "landscapeflipped" | "portraitflipped"

scaling

scaling: number

Native scaling factor.

Type: number

workingArea

workingArea: DesktopDisplayBounds

Physical bounds remaining after desktop shell work areas are excluded.

Type: DesktopDisplayBounds

workingAreaSize

workingAreaSize: DesktopDisplaySize

Usable display size in device-independent pixels.

Type: DesktopDisplaySize

Source

SharpTS.Gui.Sdk/GuiPackage/runtime.ts:1356 at SharpTS revision 7c6010104a43c34d80e9d44704cf179bc4f5b8e0.