Visual.getBestWithType
gdk.visual.Visual getBestWithType(gdk.types.VisualType visualType)Get the best visual of the given visual_type for the default GDK screen. Visuals with higher color depths are considered better. The return value should not be freed. null may be returned if no visual has type visual_type.
Parameters
visualType | a visual type |
Returns
best visual of the given type
Deprecated
Visual selection should be done using
[gdk.screen.Screen.getSystemVisual] and [gdk.screen.Screen.getRgbaVisual]