XListDepths() XListDepths()
Name
XListDepths - determine the depths available on a given screen.
Synopsis
int *XListDepths(display, screen_number, count_return)
Display *display;
int screen_number;
int *count_return;
Arguments
display Specifies a connection to an X server; returned from XOpenDisplay().
screen_number
Specifies the appropriate screen number on the host server.
count_return
Returns the number of depths.
Returns
The list of depths, or NULL on failure.
Availability
Release 4 and later.
Description
XListDepths() returns the array of depths that are available on the specified screen. If the specified screen_number is valid and suffi-
cient memory for the array can be allocated, XListDepths() sets count_return to the number of available depths. Otherwise, it does not set
count_return and returns NULL. To release the memory allocated for the array of depths, use XFree().
See Also
XDefaultDepthOfScreen(), XDefaultDepth(), XListPixmapFormats().
Xlib - Window Manager Hints XListDepths()