Package: gdk

Function gdk-visual-best-with-type

Lambda List

gdk-visual-best-with-type (visual-type)

Arguments

visual-type -- a value of the gdk-visual-type enumeration

Return Value

The best gdk-visual object of the given visual-type.

Details

Get the best visual of the given visual type for the default GDK screen. Visuals with higher color depths are considered better. Nil may be returned if no visual has type visual-type.

Warning

The gdk-visual-best-with-type function has been deprecated since version 3.22 and should not be used in newly written code. Visual selection should be done using the gdk-screen-system-visual and gdk-screen-rgba-visual functions.
 

See also

2021-12-14