Function

GdkVisualget_best_with_depth

deprecated: 3.22 

Declaration [src]

GdkVisual*
gdk_visual_get_best_with_depth (
  gint depth
)

Description [src]

Get the best visual with depth depth for the default GDK screen. Color visuals and visuals with mutable colormaps are preferred over grayscale or fixed-colormap visuals. The return value should not be freed. NULL may be returned if no visual supports depth.

Deprecated since: 3.22

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

Parameters

depth

Type: gint

A bit depth.

Return value

Type: GdkVisual

Best visual for the given depth.

The data is owned by the called function.