Xlib
Xlib is a C language client library for the X Window System. It provides an interface to the X11 protocol that allows applications to open a connection to an X server, create windows and other drawing surfaces, handle events, and issue drawing commands. The API exposes opaque data types such as Display, Window, GC, and XID, and communicates with the server in a network-transparent fashion.
As part of the X.Org ecosystem, Xlib has been the traditional foundation for X client development. It
Core concepts include the connection object (Display), screens and windows, graphics context (GC), and drawing primitives.
Resource management is supported through the X Resource Database (Xrm) and color and font resources. Xlib also
Xlib is increasingly complemented or replaced by XCB and, in many environments, by Wayland-based toolkits. It