Documentation
On this page

Interface · Desktop Services

DesktopDisplayInfo

Native desktop display information.

@sharpts/gui · SharpTS 572a2e31be0e

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

src/SharpTS.Gui.Sdk/GuiPackage/runtime.ts:1430 at SharpTS revision 572a2e31be0e2a09be0138bc44501b34d6245b51.