/macosx-10.10.1/tcl-105/tk84/tk/unix/ |
H A D | tkUnixColor.c | 18 * If a colormap fills up, attempts to allocate new colors from that 19 * colormap will fail. When that happens, we'll just choose the 20 * closest color from those that are available in the colormap. 22 * colormap to keep track of the colors that are available in the 23 * colormap (otherwise we would have to re-query from the server on 30 Colormap colormap; /* X's token for the colormap. */ member in struct:TkStressedCmap 35 * the colormap. Some may not actually 49 Colormap colormap)); 65 * Invalidates the colormap cach 130 Colormap colormap = Tk_Colormap(tkwin); local 218 Colormap colormap = Tk_Colormap(tkwin); local 268 Colormap colormap = Tk_Colormap(tkwin); local [all...] |
/macosx-10.10.1/tcl-105/tk/tk/unix/ |
H A D | tkUnixColor.c | 19 * If a colormap fills up, attempts to allocate new colors from that colormap 21 * those that are available in the colormap. One of the following structures 22 * will be created for each "stressed" colormap to keep track of the colors 23 * that are available in the colormap (otherwise we would have to re-query 30 Colormap colormap; /* X's token for the colormap. */ member in struct:TkStressedCmap 34 * that seem to be available in the colormap. 49 Colormap colormap); 65 * Invalidates the colormap cach 128 Colormap colormap = Tk_Colormap(tkwin); local 215 Colormap colormap = Tk_Colormap(tkwin); local 264 Colormap colormap = Tk_Colormap(tkwin); local 379 DeleteStressedCmap( Display *display, Colormap colormap) argument 420 TkpCmapStressed( Tk_Window tkwin, Colormap colormap) argument [all...] |
/macosx-10.10.1/tcl-105/tk84/tk/generic/ |
H A D | tkVisual.c | 46 * colormap allocated for a display by Tk_GetColormap. 50 Colormap colormap; /* X's identifier for the colormap. */ member in struct:TkColormap 51 Visual *visual; /* Visual for which colormap was 53 int refCount; /* How many uses of the colormap are still 56 int shareable; /* 0 means this colormap was allocated by 59 * for itself. 1 means that the colormap 81 * suitable colormap for use with the visual in tkwin, and it 82 * returns that colormap in *colormapPtr unless an error occurs. 85 * A new colormap ma 376 Colormap colormap; local [all...] |
H A D | tk3d.h | 38 Colormap colormap; /* Colormap out of which pixels are member in struct:TkBorder 64 * <= 64 colors or where colormap has filled
|
H A D | tkColor.h | 28 * is a colormap entry allocated for each of these colors. 46 Colormap colormap; /* Colormap from which this entry was member in struct:TkColor 48 Visual *visual; /* Visual associated with colormap. */
|
H A D | tkColor.c | 26 Colormap colormap; /* Colormap from which color will be member in struct:__anon13554 28 Display *display; /* Display for colormap. */ 122 && (Tk_Colormap(tkwin) == tkColPtr->colormap)) { 141 && (Tk_Colormap(tkwin) == tkColPtr->colormap)) { 216 && (Tk_Colormap(tkwin) == tkColPtr->colormap)) { 255 tkColPtr->colormap = Tk_Colormap(tkwin); 317 valueKey.colormap = Tk_Colormap(tkwin); 336 tkColPtr->colormap = valueKey.colormap; 546 * for the screen and colormap value [all...] |
/macosx-10.10.1/tcl-105/tk/tk/generic/ |
H A D | tkVisual.c | 45 * colormap allocated for a display by Tk_GetColormap. 49 Colormap colormap; /* X's identifier for the colormap. */ member in struct:TkColormap 50 Visual *visual; /* Visual for which colormap was allocated. */ 51 int refCount; /* How many uses of the colormap are still 54 int shareable; /* 0 means this colormap was allocated by a 57 * means that the colormap was allocated as a 78 * non-NULL, then this procedure also finds a suitable colormap for use 79 * with the visual in tkwin, and it returns that colormap in *colormapPtr 83 * A new colormap ma 374 Colormap colormap; local 451 Tk_FreeColormap( Display *display, Colormap colormap) argument 512 Tk_PreserveColormap( Display *display, Colormap colormap) argument [all...] |
H A D | tk3d.h | 36 Colormap colormap; /* Colormap out of which pixels are member in struct:TkBorder 61 * or where colormap has filled up. */
|
H A D | tkColor.h | 26 * that is being used by the application; typically there is a colormap entry 45 Colormap colormap; /* Colormap from which this entry was member in struct:TkColor 47 Visual *visual; /* Visual associated with colormap. */
|
H A D | tkColor.c | 27 Colormap colormap; /* Colormap from which color will be member in struct:__anon13207 29 Display *display; /* Display for colormap. */ 120 && (Tk_Colormap(tkwin) == tkColPtr->colormap)) { 139 && (Tk_Colormap(tkwin) == tkColPtr->colormap)) { 213 && (Tk_Colormap(tkwin) == tkColPtr->colormap)) { 251 tkColPtr->colormap = Tk_Colormap(tkwin); 314 valueKey.colormap = Tk_Colormap(tkwin); 333 tkColPtr->colormap = valueKey.colormap; 536 * the screen and colormap value [all...] |
/macosx-10.10.1/tcl-105/tk84/tk/win/ |
H A D | tkWinPixmap.c | 55 newTwdPtr->bitmap.colormap = DefaultColormap(display, 58 newTwdPtr->bitmap.colormap = twdPtr->window.winPtr->atts.colormap; 61 newTwdPtr->bitmap.colormap = twdPtr->bitmap.colormap; 166 * explicitly set the colormap slot of a Pixmap. 178 TkSetPixmapColormap(pixmap, colormap) 180 Colormap colormap; 183 twdPtr->bitmap.colormap = colormap; [all...] |
H A D | tkWinInt.h | 74 Colormap colormap; member in struct:__anon13624 97 #define TkWinGetColormap(w) (((TkWinDrawable *) w)->bitmap.colormap) 116 * The following macro retrieves the Win32 palette from a colormap. 119 #define TkWinGetPalette(colormap) (((TkWinColormap *) colormap)->palette)
|
H A D | tkWinColor.c | 182 * May invalidate the colormap cache associated with tkwin upon 183 * allocating a new colormap entry. Allocates a new TkColor 238 * May invalidate the colormap cache for the specified window. 273 * Invalidates the colormap cache for the colormap associated with 287 XFreeColors(DisplayOfScreen(screen), tkColPtr->colormap, 341 XAllocColor(display, colormap, color) 343 Colormap colormap; 346 TkWinColormap *cmap = (TkWinColormap *) colormap; 410 * Determine what color will actually be used on non-colormap system [all...] |
H A D | stubs.c | 172 XLookupColor(display, colormap, color_name, exact_def_return, 175 Colormap colormap; 198 XQueryColors(display, colormap, defs_in_out, ncolors) 200 Colormap colormap; 317 XSetWindowColormap(display, w, colormap) 320 Colormap colormap;
|
/macosx-10.10.1/tcl-105/tk/tk/win/ |
H A D | tkWinPixmap.c | 54 newTwdPtr->bitmap.colormap = DefaultColormap(display, 57 newTwdPtr->bitmap.colormap = twdPtr->window.winPtr->atts.colormap; 60 newTwdPtr->bitmap.colormap = twdPtr->bitmap.colormap; 165 * explicitly set the colormap slot of a Pixmap. 179 Colormap colormap) 182 twdPtr->bitmap.colormap = colormap; 174 TkSetPixmapColormap( Pixmap pixmap, Colormap colormap) argument
|
H A D | tkWinInt.h | 75 Colormap colormap; member in struct:__anon13422 98 #define TkWinGetColormap(w) (((TkWinDrawable *) w)->bitmap.colormap) 117 * The following macro retrieves the Win32 palette from a colormap. 120 #define TkWinGetPalette(colormap) (((TkWinColormap *) colormap)->palette)
|
/macosx-10.10.1/tcl-105/tk/tk/tests/ |
H A D | cmap.tcl | 8 toplevel .t -colormap new 14 # window, in order to eat up all the colors in a colormap. 32 message .t.m -width 6i -text {This window displays two nested frames, each with a whole bunch of subwindows that eat up a lot of colors. The toplevel window has its own colormap, which is inherited by the outer frame. The inner frame has its own colormap. As you move the mouse around, the colors in the frames should change back and forth.} 41 frame .t.f.f -width 350 -height 350 -colormap new -bd 2 -relief raised 53 message .t2.m -width 6i -text {This window just eats up most of the colors in the default colormap.}
|
/macosx-10.10.1/tcl-105/tk84/tk/tests/ |
H A D | cmap.tcl | 8 toplevel .t -colormap new 14 # window, in order to eat up all the colors in a colormap. 32 message .t.m -width 6i -text {This window displays two nested frames, each with a whole bunch of subwindows that eat up a lot of colors. The toplevel window has its own colormap, which is inherited by the outer frame. The inner frame has its own colormap. As you move the mouse around, the colors in the frames should change back and forth.} 41 frame .t.f.f -width 350 -height 350 -colormap new -bd 2 -relief raised 53 message .t2.m -width 6i -text {This window just eats up most of the colors in the default colormap.}
|
/macosx-10.10.1/tcl-105/tcl_ext/tkimg/tkimg/compat/libjpeg/ |
H A D | rdbmp.c | 58 JSAMPARRAY colormap; /* BMP colormap (converted to my format) */ member in struct:_bmp_source_struct 83 /* Read the colormap from a BMP file */ 91 sinfo->colormap[2][i] = (JSAMPLE) read_byte(sinfo); 92 sinfo->colormap[1][i] = (JSAMPLE) read_byte(sinfo); 93 sinfo->colormap[0][i] = (JSAMPLE) read_byte(sinfo); 99 sinfo->colormap[2][i] = (JSAMPLE) read_byte(sinfo); 100 sinfo->colormap[1][i] = (JSAMPLE) read_byte(sinfo); 101 sinfo->colormap[0][i] = (JSAMPLE) read_byte(sinfo); 121 /* This version is for reading 8-bit colormap indexe 124 register JSAMPARRAY colormap = source->colormap; local [all...] |
H A D | wrrle.c | 57 rle_map *colormap; /* RLE-style color map, or NULL if none */ member in struct:__anon12906 110 /* Convert colormap, if any, to RLE format. */ 112 dest->colormap = NULL; 117 dest->colormap = (rle_map *) (*cinfo->mem->alloc_small) 119 MEMZERO(dest->colormap, cmapsize); 125 dest->colormap[ci * CMAPLENGTH + i] = 126 GETJSAMPLE(cinfo->colormap[ci][i]) << 8; 200 header.cmap = dest->colormap; 201 /* Add a comment to the output image with the true colormap length. */
|
H A D | rdcolmap.c | 9 * and constructs a colormap to be supplied to the JPEG decompressor. 12 * GIF: the contents of the GIF's global colormap are used. 48 JSAMPROW colormap0 = cinfo->colormap[0]; 49 JSAMPROW colormap1 = cinfo->colormap[1]; 50 JSAMPROW colormap2 = cinfo->colormap[2]; 227 * Output: colormap and actual_number_of_colors fields are set in cinfo. 234 cinfo->colormap = (*cinfo->mem->alloc_sarray)
|
H A D | rdtarga.c | 53 JSAMPARRAY colormap; /* Targa colormap (converted to my format) */ member in struct:_tga_source_struct 102 /* Read the colormap from a Targa file */ 111 sinfo->colormap[2][i] = (JSAMPLE) read_byte(sinfo); 112 sinfo->colormap[1][i] = (JSAMPLE) read_byte(sinfo); 113 sinfo->colormap[0][i] = (JSAMPLE) read_byte(sinfo); 191 /* This version is for reading 8-bit colormap indexes */ 197 register JSAMPARRAY colormap = source->colormap; local 203 *ptr++ = colormap[ [all...] |
H A D | rdrle.c | 42 * GRAYSCALE - 8 bits, no colormap 44 * PSEUDOCOLOR - 8 bits, 3 channel colormap 45 * TRUECOLOR - 24 bits, 3 channel colormap 46 * DIRECTCOLOR - 24 bits, no colormap 210 rle_map *colormap; local 213 colormap = source->header.cmap; 221 *dest_row++ = (JSAMPLE) (colormap[val ] >> 8); 222 *dest_row++ = (JSAMPLE) (colormap[val + 256] >> 8); 223 *dest_row++ = (JSAMPLE) (colormap[val + 512] >> 8); 247 rle_map *colormap; local [all...] |
H A D | wrgif.c | 210 /* Emit 3 copies of same byte value --- handy subr for colormap construction */ 219 emit_header (gif_dest_ptr dinfo, int num_colors, JSAMPARRAY colormap) argument 221 /* If colormap==NULL, synthesize a gray-scale colormap */ 262 if (colormap != NULL) { 265 putc(GETJSAMPLE(colormap[0][i]) >> cshift, dinfo->pub.output_file); 266 putc(GETJSAMPLE(colormap[1][i]) >> cshift, dinfo->pub.output_file); 267 putc(GETJSAMPLE(colormap[2][i]) >> cshift, dinfo->pub.output_file); 270 put_3bytes(dinfo, GETJSAMPLE(colormap[0][i]) >> cshift); 307 emit_header(dest, cinfo->actual_number_of_colors, cinfo->colormap); [all...] |
H A D | wrbmp.c | 158 /* Write a Windows-style BMP file header, including colormap if needed */ 173 /* Compute colormap size and total file size */ 185 /* Grayscale output. We need to fake a 256-entry colormap. */ 190 headersize = 14 + 40 + cmap_entries * 4; /* Header and colormap */ 231 /* Write an OS2-style BMP file header, including colormap if needed */ 238 /* Compute colormap size and total file size */ 250 /* Grayscale output. We need to fake a 256-entry colormap. */ 255 headersize = 14 + 12 + cmap_entries * 3; /* Header and colormap */ 287 * Write the colormap. 295 JSAMPARRAY colormap local [all...] |