00001 //00002 // "$Id$"00003 //00004 // X-specific color definitions for the Fast Light Tool Kit (FLTK).00005 //00006 // Copyright 1998-2010 by Bill Spitzak and others.00007 //00008 // This library is free software. Distribution and use rights are outlined in00009 // the file "COPYING" which should have been included with this file. If this00010 // file is missing or damaged, see the license at:00011 //00012 // http://www.fltk.org/COPYING.php00013 //00014 // Please report all bugs and problems on the following page:00015 //00016 // http://www.fltk.org/str.php00017 //00018
00019 #include <config.h>00020 #include <FL/Enumerations.H>00021
00022 // one of these for each color in fltk's "colormap":00023 // if overlays are enabled, another one for the overlay00024struct Fl_XColor {
00025 unsignedchar r,g,b; // actual color used by X00026 unsignedchar mapped; // true when XAllocColor done00027 unsignedlong pixel; // the X pixel to use00028 };
00029 externFl_XColorfl_xmap[/*overlay*/][256];
00030
00031 // mask & shifts to produce xcolor for truecolor visuals:00032 externunsignedcharfl_redmask, fl_greenmask, fl_bluemask;
00033 externintfl_redshift, fl_greenshift, fl_blueshift, fl_extrashift;
00034
00035 //00036 // End of "$Id$".00037 //