# Monitor

`import { Monitor } from "destack:display/binding";`

Display output.

```ds title="Monitor"
export struct Monitor {
    id: string;
    name: string;
    backend: DisplayBackendKind;
    isPrimary: boolean;
    bounds: MonitorRect;
    workArea: MonitorRect;
    widthMm: uint32;
    heightMm: uint32;
    scaleFactorMilli: uint32;
    orientation: MonitorOrientation;
    currentMode: MonitorMode;
    desktopMode: MonitorMode;
    colorState: MonitorColorState;
    builtinPanel: MonitorSupport;
    variableRefresh: MonitorSupport;
    hdr: MonitorSupport;
}
```

[language/library/src/display/binding/monitor.ds:112:145](https://github.com/destack-sh/destack/blob/main/language/library/src/display/binding/monitor.ds#L112-L145)

## Members

### `id: string`

Stable monitor identifier.

### `name: string`

Display name.

### `backend: DisplayBackendKind`

Host backend.

### `isPrimary: boolean`

Whether this monitor is primary.

### `bounds: MonitorRect`

Desktop bounds.

### `workArea: MonitorRect`

Work area excluding host chrome.

### `widthMm: uint32`

Physical width in millimeters.

### `heightMm: uint32`

Physical height in millimeters.

### `scaleFactorMilli: uint32`

Scale factor in milli-scale units.

### `orientation: MonitorOrientation`

Current orientation.

### `currentMode: MonitorMode`

Current display mode.

### `desktopMode: MonitorMode`

Desktop-preferred display mode.

### `colorState: MonitorColorState`

Current color state.

### `builtinPanel: MonitorSupport`

Whether this monitor is a built-in panel.

### `variableRefresh: MonitorSupport`

Variable-refresh support.

### `hdr: MonitorSupport`

HDR support.
