• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/tcl-105/tk84/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 */
62 char *fontVar; /* If non-NULL, gives name of global variable
65 char *colorVar; /* If non-NULL, give name of global variable
66 * containing color mapping information.
69 * "gray", or "color". Malloc'ed. */
71 * 0 for mono, 1 for gray, 2 for color. */
75 char *channelName; /* If -channel is specified, the name of
313 } else if (strncmp(psInfo.colorMode, "color", length) == 0) {
316 Tcl_AppendResult(interp, "bad color mode \"",
318 "gray, or color", (char *) NULL);
486 * Document setup: set the color level and include fonts.
637 * they want to set a color value for output. Given information
638 * about an X color, this procedure will generate Postscript
639 * commands to set up an appropriate color in Postscript.
657 XColor *colorPtr; /* Information about color. */
669 * If there is a color map defined, then look up the color's name
686 * No color map entry for this color. Grab the color's intensities
694 * scheme still won't work if the display only uses 4 bits per color,
728 * The Postscript font name is entered into psInfoPtr->fontTable
748 * First, look up the font's name in the font map, if there is one.
750 * containing font name and size. Use this information.
760 CONST char *name;
762 name = Tk_NameOfFont(tkfont);
763 list = Tcl_GetVar2(interp, psInfoPtr->fontVar, name, 0);
768 Tcl_AppendResult(interp, "bad font map entry for \"", name,
1126 * data coming through here is expected to be RGB color data.
1131 * Returns red, green, and blue color values in the range
1194 * current color mode (i.e. one bit per pixel in monochrome,
1196 * color).
1272 cdata.color = 0;
1274 cdata.color = 1;
1279 * Figure out which color level to use (possibly lower than the
1281 * color with monochrome screen, use gray or monochrome mode instead.
1284 if (!cdata.color && level == 2) {
1288 if (!cdata.color && cdata.ncolors == 2) {
1391 * Finally, color mode. Here, just output the red, green,
1433 * the requested postscript color mode (i.e. one byte per pixel
1434 * in gray, and three bytes per pixel in color).
1859 * Finally, color mode. Here, just output the red, green,