Monitors Class

From Derivative
Jump to: navigation, search

The Monitors class describes the set of all installed monitor objects. It can be accessed with the monitors object, found in the automatically imported td module. It is a list of monitor objects, where monitors[0] is monitor 0 (0-indexed).



Members

Monitors.bottomint (Read Only):

The bottommost position of the combined monitor area, measured in pixels.

Monitors.heightint (Read Only):

The height of the combined monitor area, measured in pixels.

Monitors.leftint (Read Only):

The leftmost edge of the combined monitor area, measured in pixels.

Monitors.primaryint (Read Only):

The primary monitor display.

Monitors.rightint (Read Only):

The rightmost edge of the combined monitor area, measured in pixels.

Monitors.topint (Read Only):

The topmost position of the combined monitor area, measured in pixels.

Monitors.widthint (Read Only):

The width of the combined monitor area, measured in pixels.

Methods

Monitors.locate(x,y)td.Monitor:

Return the monitor at the specified mouse coordinates, or None.

Monitors.refresh()None:

Causes the application to behave as if a monitor device has changed. Monitors DAT and other sources will be updated. This is typically done automatically by the operating system, but in special cases can be triggered manually with this method.