Returns the geometries of all of a screen's monitors.
capi
screen-monitor-geometries screen => monitor-geometries
screen⇩ |
A CAPI screen. |
monitor-geometries⇩ |
A list of screen rectangles. |
The function screen-monitor-geometries
returns the geometries of all the monitors of screen. A monitor corresponds to an entity that the host machine regards as a physical monitor. screen-monitor-geometries
ignores software manipulations like the desktop on GTK+.
The monitor geometry is a rectangle which includes all of its display area, including "system areas" like menubar and taskbar and so on. Examples of these include the Windows taskbar, the macOS menu bar and the macOS Dock.
Each monitor geometry screen rectangle is represented by a list of four numbers: the x and y coordinates as offsets from the top-left of the primary monitor, and the width and height.
The first screen rectangle in monitor-geometries corresponds to the primary monitor.
screen-monitor-geometries
differs from screen-internal-geometries by returning screen rectangles which include all the monitor areas, and also by ignoring desktop manipulations.
pane-screen-internal-geometry
screen-internal-geometries
virtual-screen-geometry
3.13 Screens
4.3 Support for multiple monitors
11.6 Querying and modifying interface geometry
CAPI User Guide and Reference Manual (Unix version) - 01 Dec 2021 19:32:42