get_best_with_depth


Description:

[ Version ( deprecated = true , deprecated_since = "3.22" ) ]
public static unowned Visual get_best_with_depth (int depth)

Warning: get_best_with_depth is deprecated since 3.22.

Get the best visual with depth depth for the default GDK screen.

Note:

Visual selection should be done using get_system_visual and get_rgba_visual

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.

Parameters:

depth

a bit depth

Returns:

best visual for the given depth