Jump to content

X Window Programming/XLib/Standard Headers

From Wikibooks, open books for an open world

Standard XLib Headers

[edit | edit source]
#include What is it used for?
<X11/X10.h> X10 compatibility functions, types and symbols.
<X11/Xatom.h> All predefined atoms, which are symbols with the prefix `XA_`.
<X11/cursorfont.h> Standard cursor font symbols, which have the `XC_` prefix.
<X11/X.h> Types and constants for applications. Included automatically within <X11/Xlib.h>.
<X11/keysymdef.h> Standard KeySym values, which are symbols with the prefix ``XK_``. KeySyms are arranged in groups, and a preprocessor symbol controls inclusion of each group. The preprocessor symbol must be defined prior to inclusion of the file to obtain the associated values. The preprocessor symbols are XK_MISCELLANY, XK_LATIN1, XK_LATIN2, XK_LATIN3, XK_LATIN4, XK_KATAKANA, XK_ARABIC, XK_CYRILLIC, XK_GREEK, XK_TECHNICAL, XK_SPECIAL, XK_PUBLISHING, XK_APL, XK_HEBREW, XK_THAI, and XK_KOREAN.
<X11/keysym.h> Defines the preprocessor symbols XK_MISCELLANY, XK_LATIN1, XK_LATIN2, XK_LATIN3, XK_LATIN4, and XK_GREEK and then includes <X11/keysymdef.h>
<X11/Xlib.h> Main header for Xlib which contains the majority of all symbols. Since release 5, contains the preprocessor symbol XlibSpecificationRelease.
<X11/Xlibint.h> Functions, types, and symbols used for extensions. Automatically includes <X11/Xlib.h>.
<X11/Xcms.h> Color management functions, types and constants, which begin with the prefix ``Xcms`. Color Conversion Contexts macros are also declared in this file. Depends on <X11/Xlib.h> being included first.
<X11/Xutil.h> Inter-client communication and application utility functions, types and symbols. Depends on <X11/Xlib.h> being included first.
<X11/Xresource.h> Resource Manager functions, types, and symbols. Depends on <X11/Xlib.h> being included first.