Visual.getBestWithDepth

gdk.visual.Visual getBestWithDepth(int depth)

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.

Parameters

deptha bit depth

Returns

best visual for the given depth

Deprecated

Visual selection should be done using

[gdk.screen.Screen.getSystemVisual] and [gdk.screen.Screen.getRgbaVisual]