Monitor#

class pixel_forge.Monitor(id: int | None = None)#

Platform-agnostic monitor abstraction.

property device_name: str#

The monitor device name.

property device_string: str#

The monitor device string.

property height: int#

The monitor pixel height.

property index: int#

The monitor index.

property refresh_rate: int#

The monitor refresh rate in Hz.

property width: int#

The monitor pixel width.

pixel_forge.primary_monitor() Monitor#

Get the primary monitor.

Returns:

The primary monitor.

pixel_forge.enumerate_monitors() list[Monitor]#

Create a list of all monitors.

Returns:

The list of all monitors.