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

Lines Matching +defs:color +defs:name

30 typedef struct TkColormapData {	/* Hold color information for a window */
31 int separated; /* Whether to use separate color bands */
32 int color; /* Whether window is color or black/white */
33 int ncolors; /* Number of color values stored */
36 int red_shift, green_shift, blue_shift; /* color band */
63 char *fontVar; /* If non-NULL, gives name of global variable
66 char *colorVar; /* If non-NULL, give name of global variable
67 * containing color mapping information.
70 * "gray", or "color". Malloc'ed. */
72 * for mono, 1 for gray, 2 for color. */
76 char *channelName; /* If -channel is specified, the name of the
307 } else if (strncmp(psInfo.colorMode, "color", length) == 0) {
310 Tcl_AppendResult(interp, "bad color mode \"", psInfo.colorMode,
311 "\": must be monochrome, gray, or color", NULL);
469 * Document setup: set the color level and include fonts.
612 * set a color value for output. Given information about an X color, this
614 * color in Postscript.
631 XColor *colorPtr) /* Information about color. */
643 * If there is a color map defined, then look up the color's name in the
659 * No color map entry for this color. Grab the color's intensities and
667 * per color, but most diplays use at least 8 bits.
699 * The Postscript font name is entered into psInfoPtr->fontTable if it
718 * First, look up the font's name in the font map, if there is one. If
720 * name and size. Use this information.
724 CONST char *name = Tk_NameOfFont(tkfont);
728 Tcl_Obj *list = Tcl_GetVar2Ex(interp, psInfoPtr->fontVar, name, 0);
739 Tcl_AppendResult(interp, "bad font map entry for \"", name,
1093 * here is expected to be RGB color data. To handle lower bit-depth
1097 * Returns red, green, and blue color values in the range 0 to 1. There
1167 * Postscript, using a format appropriate for the current color mode
1169 * three bytes per pixel in color).
1251 cdata.color = 0;
1253 cdata.color = 1;
1259 * Figure out which color level to use (possibly lower than the one
1260 * specified by the user). For example, if the user specifies color with
1264 if (!cdata.color && level == 2) {
1268 if (!cdata.color && cdata.ncolors == 2) {
1373 * Finally, color mode. Here, just output the red, green, and
1416 * color mode (i.e. one byte per pixel in gray, and three bytes per pixel
1417 * in color).
1821 * Finally, color mode. Here, just output the red, green, and blue