Search code examples
c++cgraphicsxlibxserver

Where is Xlib's Colormap defined?


I am porting some Linux program to my embedded system. Problem is that program uses Xlib to draw an output image. I've found online definitions of used structures and functions which helps me to port the app. The only thing I can't find is the definition of Colormap. I've found few descriptions that Colormap is just a table of used colors (XColor?). But I've never found original definition of it. I've searched it online and in X11 under git. I've found Colormap included in other structures with no definition of Colormap itself. Am I missing something?


Solution

  • The headers for X11 are typically under /usr/include/X11

    Classically in /usr/include/X11/X.h there is typedef XID Colormap;