Documentation
On this page

Interface · Core and Composition

WindowMetricsEvent

Coalesced post-layout metrics for the containing desktop window.

@sharpts/gui · SharpTS 572a2e31be0e

Members

clientHeight

readonly clientHeight: number

Arranged client height in device-independent pixels.

Type: number

clientWidth

readonly clientWidth: number

Arranged client width in device-independent pixels.

Type: number

displayName

readonly displayName: string

Operating-system name of the current display, when available.

Type: string

isPrimary

readonly isPrimary: boolean

Whether the current display is the primary display.

Type: boolean

pixelWorkingArea

readonly pixelWorkingArea: { height: number; width: number; x: number; y: number }

Current display work area in physical desktop pixels.

Type: { height: number; width: number; x: number; y: number }

scaling

readonly scaling: number

Native pixels per device-independent pixel on the current display.

Type: number

windowState

readonly windowState: WindowState

Current native presentation state.

Type: WindowState

workingAreaHeight

readonly workingAreaHeight: number

Current display work-area height in device-independent pixels.

Type: number

workingAreaWidth

readonly workingAreaWidth: number

Current display work-area width in device-independent pixels.

Type: number

Source

src/SharpTS.Gui.Sdk/GuiPackage/runtime-types.ts:31 at SharpTS revision 572a2e31be0e2a09be0138bc44501b34d6245b51.