Lines Matching defs:colorPtr

104 					 * at *colorPtr. */
105 XColor *colorPtr; /* Pointer to malloc'ed array of all
260 * to those specified in colorPtr, and also specifies a pixel
273 Tk_GetColorByValue(tkwin, colorPtr)
275 XColor *colorPtr; /* Red, green, and blue fields indicate
293 valueKey.red = colorPtr->red;
294 valueKey.green = colorPtr->green;
295 valueKey.blue = colorPtr->blue;
341 * If colorPtr was created by Tk_GetColor, then the return
355 Tk_NameOfColor(colorPtr)
356 XColor *colorPtr; /* Color whose name is desired. */
358 register TkColor *tkColPtr = (TkColor *) colorPtr;
366 sprintf(string, "#%04x%04x%04x", colorPtr->red, colorPtr->green,
367 colorPtr->blue);
394 Tk_GCForColor(colorPtr, drawable)
395 XColor *colorPtr; /* Color for which a GC is desired. Must
403 TkColor *tkColPtr = (TkColor *) colorPtr;
436 * The reference count associated with colorPtr is deleted, and
444 Tk_FreeColor(colorPtr)
445 XColor *colorPtr; /* Color to be released. Must have been
449 register TkColor *tkColPtr = (TkColor *) colorPtr;
557 XColor *colorPtr;
579 stressPtr->colorPtr = (XColor *) ckalloc((unsigned)
582 stressPtr->colorPtr[i].pixel = (unsigned long) i;
584 XQueryColors(dispPtr->display, colormap, stressPtr->colorPtr,
609 for (colorPtr = stressPtr->colorPtr, i = 0; i < stressPtr->numColors;
610 colorPtr++, i++) {
617 tmp = .30*(((int) desiredColorPtr->red) - (int) colorPtr->red);
619 tmp = .61*(((int) desiredColorPtr->green) - (int) colorPtr->green);
621 tmp = .11*(((int) desiredColorPtr->blue) - (int) colorPtr->blue);
629 &stressPtr->colorPtr[closest]) != 0) {
630 *actualColorPtr = stressPtr->colorPtr[closest];
639 stressPtr->colorPtr[closest] =
640 stressPtr->colorPtr[stressPtr->numColors-1];
724 ckfree((char *) stressPtr->colorPtr);