Page:Xlib - C Language X Interface.pdf/23

 {| style="background:#F0F0F0;color: #202122;" cellpadding=10px
 * colspan=2 |
 * display || Specifies the connection to the X server.
 * }
 * display || Specifies the connection to the X server.
 * }

Both return a number related to a vendor's release of the X server.

 2.2.2. Image Format Functions and Macros 

Applications are required to present data to the X server in a format that the server demands. To help simplify applications, most of the work required to convert the data is provided by Xlib (see sections 8.7 and 16.8).

The XPixmapFormatValues structure provides an interface to the pixmap format information that is returned at the time of a connection setup. It contains:

To obtain the pixmap format information for a given display, use XListPixmapFormats.

The XListPixmapFormats function returns an array of XPixmapFormatValues structures that describe the types of Z format images supported by the specified display. If insufficient memory is available, XListPixmapFormats returns NULL. To free the allocated storage for the XPixmapFormatValues structures, use XFree.

The following lists the C language macros, their corresponding function equivalents that are for other language bindings, and what data they both return for the specified server and screen.

These are often used by toolkits as well as by simple applications.