Visual.getBestWithDepth

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.

class Visual
static
getBestWithDepth
(
int depth
)

Parameters

depth int

a bit depth

Return Value

Type: Visual

best visual for the given depth. [transfer none]

Meta