Function

Gdkquery_depths

deprecated: 3.22 since: 3.0

Declaration [src]

void
gdk_query_depths (
  gint** depths,
  gint* count
)

Description [src]

This function returns the available bit depths for the default screen. It’s equivalent to listing the visuals (gdk_list_visuals()) and then looking at the depth field in each visual, removing duplicates.

The array returned by this function should not be freed.

Available since: 3.0

Deprecated since: 3.22

Visual selection should be done using gdk_screen_get_system_visual() and gdk_screen_get_rgba_visual()

Parameters

depths

Type: An array of gint*

Return location for available depths.

The argument will be set by the function.
The length of the array is specified in the count argument.
The returned data is owned by the function.
count

Type: gint*

Return location for number of available depths.

The argument will be set by the function.