• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/tcl-102/tk/tk/macosx/

Lines Matching refs:pixel

6  *	map color names to pixel values.
32 * in sync with the public pixel code values in tkMacOSXPort.h !
183 * When given a pixel code corresponding to a theme system color,
188 * Returns false if not a real pixel, true otherwise.
226 * Get RGB color for a given system color or pixel value.
239 unsigned long pixel,
254 switch ((pixel >> 24) & 0xff) {
257 red = (pixel >> 16) & 0xff;
258 green = (pixel >> 8) & 0xff;
259 blue = (pixel ) & 0xff;
290 * Creates a CGColorRef from a X style pixel value.
293 * Returns false if not a real pixel, true otherwise.
304 unsigned long pixel, /* Pixel value to convert. */
313 if (GetThemeFromPixelCode((pixel >> 24) & 0xff, &brush, &textColor,
315 err = ChkErr(GetThemeColor, pixel, brush, textColor, background,
362 unsigned long pixel)
368 if (gcCache->cachedForeground == pixel) {
370 } else if (gcCache->cachedBackground == pixel) {
383 unsigned long pixel,
389 if (gc->foreground == pixel) {
394 gcCache->cachedForeground = pixel;
395 } else if (gc->background == pixel) {
400 gcCache->cachedBackground = pixel;
411 * Creates a CGColorRef from a X style pixel value.
414 * Returns NULL if not a real pixel, CGColorRef otherwise.
425 unsigned long pixel) /* Pixel value to convert. */
427 CGColorRef cgColor = CopyCachedColor(gc, pixel);
429 if (!cgColor && TkSetMacColor(pixel, &cgColor)) {
430 SetCachedColor(gc, pixel, cgColor);
441 * Creates an autoreleased NSColor from a X style pixel value.
444 * Returns nil if not a real pixel, NSColor* otherwise.
455 unsigned long pixel) /* Pixel value to convert. */
457 CGColorRef cgColor = TkMacOSXCreateCGColor(gc, pixel);
479 * pixel value, or if the pixel code indicates a system color,
495 unsigned long pixel,
499 CGColorRef cgColor = CopyCachedColor(gc, pixel);
504 if (!cgColor && GetThemeFromPixelCode((pixel >> 24) & 0xff, &brush,
527 err = ChkErr(GetThemeColor, pixel, brush, textColor, background,
530 SetCachedColor(gc, pixel, cgColor);
533 TkMacOSXDbgMsg("Ignored unknown pixel value 0x%lx", pixel);
608 color.pixel = ((((((pixelCode << 8)
637 * locate a pixel value to use to draw that color in a given
643 * to those specified in colorPtr, and also specifies a pixel
664 tkColPtr->color.pixel = TkpGetPixel(&tkColPtr->color);
693 colorPtr->pixel = TkpGetPixel(colorPtr);
725 unsigned long planes) /* Number of pixel planes. */