Documentation
On this page

Interface · Core and Composition

WindowMetricsEvent

Coalesced post-layout metrics for the containing desktop window.

@sharpts/gui 0.0.0-local · SharpTS 7c6010104a43

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

SharpTS.Gui.Sdk/GuiPackage/runtime-types.ts:31 at SharpTS revision 7c6010104a43c34d80e9d44704cf179bc4f5b8e0.