• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/tcl-105/tk84/tk/macosx/

Lines Matching +defs:color +defs:name

4  *	This file maintains a database of color values for the Tk
6 * map color names to pixel values.
28 const char *name;
35 * Array of system color definitions: the array index is required to equal the
36 * color's (pixelCode - MIN_PIXELCODE), i.e. the array order needs to be kept
187 * When given a pixel code corresponding to a theme system color,
229 * Get RGB color for a given system color or pixel value.
288 RGBColor *macColor) /* Mac color struct to modify. */
309 * Sets fore or back color in the given QD port from an X pixel
310 * value, and if the pixel code indicates a system color, sets
318 * If penPat is non-NULL it is set to the forground color/pattern.
390 * Sets fill and stroke color in the given CG context from an X
391 * pixel value, or if the pixel code indicates a system color,
544 * Allocate a new TkColor for the color with the given name.
559 Tk_Window tkwin, /* Window in which color will be used. */
560 Tk_Uid name) /* Name of color to allocated (in form
566 XColor color;
569 * Check to see if this is a system color. Otherwise, XParseColor
572 if (strncasecmp(name, "system", 6) == 0) {
573 Tcl_Obj *strPtr = Tcl_NewStringObj(name+6, -1);
589 color.red = c.red;
590 color.green = c.green;
591 color.blue = c.blue;
592 color.pixel = ((((((pixelCode << 8)
593 | ((color.red >> 8) & 0xff)) << 8)
594 | ((color.green >> 8) & 0xff)) << 8)
595 | ((color.blue >> 8) & 0xff));
601 if (XParseColor(display, colormap, name, &color) == 0) {
607 tkColPtr->color = color;
618 * Given a desired set of red-green-blue intensities for a color,
619 * locate a pixel value to use to draw that color in a given
626 * value to use to draw in that color.
637 Tk_Window tkwin, /* Window in which color will be used. */
639 * desired color. */
643 tkColPtr->color.red = colorPtr->red;
644 tkColPtr->color.green = colorPtr->green;
645 tkColPtr->color.blue = colorPtr->blue;
646 tkColPtr->color.pixel = TkpGetPixel(&tkColPtr->color);
657 * On Mac, color codes may specify symbolic values like "highlight