get_best_with_type


Description:

public static unowned Visual get_best_with_type (VisualType visual_type)

Get the best visual of the given visual_type for the default GDK screen.

Note:

Visual selection should be done using get_system_visual and get_rgba_visual

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:

visual_type

a visual type

Returns:

best visual of the given type