The XVisualInfo structure has the format shown below. For details on the members of this structure, see the XLib Programming Manual.
typedef struct { Visual* visual; VisualID visualid; int screen_num; unsigned int depth; int class; unsigned long red_mask; unsigned long green_mask; unsigned long blue_mask; int colormap_size; /* Same as map_entries member of Visual */ int bits_per_rgb; } XVisualInfo;