January 1989
Intermediate to advanced
723 pages
14h 11m
English
This appendix describes the contents of the include files for Xlib.
All include files are normally located in /usr/include/X11. All Xlib programs require <X11/Xlib.h>, which includes <X11/X.h>. <X11/Xlib.h> contains most of the structure declarations, while <X11/X.h> contains most of the defined constants. Virtually all programs will also require <X11/Xutil.h>, which include structure types and declarations applicable to window manager hints, colors, visuals, regions, standard geometry strings, and images.
Here is a summary of the contents of the include files:
| <X11/Xlib.h> | structure declarations for core Xlib functions. |
| <X11/X.h> | constant definitions for Xlib functions. |
| <X11/Xutil.h> | additional structure types and constant definitions for miscellaneous Xlib functions. |
| <X11/Xatom.h> | the predefined atoms for properties, types, and font characteristics. |
| <X11/cursorfont.h> | the constants used to select a cursor shape from the standard cursor font. |
| <X11/keysym.h> | predefined key symbols corresponding to keycodes. It includes <X11/keysymdef.h>. |
| <X11/Xresource.h> | resource manager structure definitions and function declarations. |
The following types are defined in <X11/X.h>:
unsigned long XID XID Colormap XID Cursor XID Drawable XID Font XID GContext XID KeySym XID Pixmap XID Window unsigned long Atom unsigned char KeyCode unsigned long Mask unsigned long Time unsigned long VisualID
Read now
Unlock full access