Method

GdkScreenget_monitor_geometry

deprecated: 3.22 since: 2.2

Declaration [src]

void
gdk_screen_get_monitor_geometry (
  GdkScreen* screen,
  gint monitor_num,
  GdkRectangle* dest
)

Description [src]

Retrieves the GdkRectangle representing the size and position of the individual monitor within the entire screen area. The returned geometry is in ”application pixels”, not in ”device pixels” (see gdk_screen_get_monitor_scale_factor()).

Monitor numbers start at 0. To obtain the number of monitors of screen, use gdk_screen_get_n_monitors().

Note that the size of the entire screen area can be retrieved via gdk_screen_get_width() and gdk_screen_get_height().

Available since: 2.2

Deprecated since: 3.22

Use gdk_monitor_get_geometry() instead.

Parameters

monitor_num

Type: gint

The monitor number.

dest

Type: GdkRectangle

A GdkRectangle to be filled with the monitor geometry.

The argument will be set by the function.
The argument can be NULL.
The returned data is owned by the instance.