Method
GdkMonitorget_workarea
since: 3.22
Declaration [src]
void
gdk_monitor_get_workarea (
GdkMonitor* monitor,
GdkRectangle* workarea
)
Description [src]
Retrieves the size and position of the “work area” on a monitor within the display coordinate space. The returned geometry is in ”application pixels”, not in ”device pixels” (see gdk_monitor_get_scale_factor()).
The work area should be considered when positioning menus and similar popups, to avoid placing them below panels, docks or other desktop components.
Note that not all backends may have a concept of workarea. This function will return the monitor geometry if a workarea is not available, or does not apply.
Available since: 3.22
Gets property | Gdk.Monitor:workarea |
Parameters
workarea
-
Type:
GdkRectangle
A
GdkRectangle
to be filled with the monitor workarea.The argument will be set by the function. The returned data is owned by the instance.