Package: gdk

Function gdk:query-depths

Lambda List

gdk:query-depths ()

Return Value

The list of integers of the available depths.

Details

This function returns the available bit depths for the default screen. It is equivalent to listing the visuals with the gdk:list-visuals function and then looking at the depth field in each visual, removing duplicates.

Warning

The gdk:query-depths 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.

Example

(gdk:query-depths)
=> (32 24)    
 

See also

2024-6-28