rusty_desktop_icons.MonitorInfo

class rusty_desktop_icons.MonitorInfo

A single connected display in the virtual-screen coordinate system.

See [DesktopController.list_monitors]. Bounds share the same coordinate space as icon positions.

contains(point: Sequence[int]) → bool

True if the given (x, y) point lies inside this monitor’s full bounds.

to_dict() → dict[str, object]
property bounds: Rect

Full monitor bounds in virtual-screen coordinates.

property dpi: float
property id: str

Stable-for-session identifier for the Windows display device.

property is_primary: bool

True for the monitor that owns virtual coordinate (0, 0).

property name: str

Human-readable label.

property resolution: tuple[int, int]
property scale_factor: float

Effective DPI scale factor (1.0 = 96 DPI).

property work_area: Rect

Bounds excluding the taskbar and other reserved-space widgets.