Visual.getBestWithBoth

gdk.visual.Visual getBestWithBoth(int depth, gdk.types.VisualType visualType)

Combines [gdk.visual.Visual.getBestWithDepth] and [gdk.visual.Visual.getBestWithType].

Parameters

deptha bit depth
visualTypea visual type

Returns

best visual with both depth

and visual_type, or null if none

Deprecated

Visual selection should be done using

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