Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XListDepths(3x) — HP-UX 9.05

Media Vault

Software Library

Restoration Projects

Artifacts Sought

 

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

displaySpecifies 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.

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 sufficient 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

DefaultDepthOfScreen() macro, DefaultDepth() macro, XListPixmapFormats(). 

Copyright O’Reilly & Assoc.  —  

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026