typedef struct _KCMSCVisuals {
Display * display;
int screen;
int numVisuals; /* dynamic array size */
XVisualInfo ** visuals; /* visuals to get data for */
} KCMSCVisuals;
KCMSCVisuals is a structure that identifies to the loadable module the display and visuals upon which to perform measurements. The members in this structure are described below:
|
display |
Is a Display pointer. The Display pointer is for use when the loadable module makes an X library call (such as XCreateWindow()) to connect to the local windowing system. (For details on Display, see the XLib Programming Manual.) |
|
screen |
Is the screen number to be used in Xll calls. Calibrator Tool fills in the value of this field. |
|
numVisuals |
Is the number of X visuals for which color measurement data is needed. Calibrator Tool fills in the value of this field based on the number of X visuals to be updated. (For details, see "Slow and Fast Mode Measurements" in Chapter 4, Measuring Monitor Response.) |
|
visuals |
Is an array of XVisualInfo pointers. (See "XVisualInfo" below for the format of this structure.) |
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;