FLTK 1.3.4
Fl_XColor.H
1 //
2 // "$Id: Fl_XColor.H 8864 2011-07-19 04:49:30Z greg.ercolano $"
3 //
4 // X-specific color definitions for the Fast Light Tool Kit (FLTK).
5 //
6 // Copyright 1998-2010 by Bill Spitzak and others.
7 //
8 // This library is free software. Distribution and use rights are outlined in
9 // the file "COPYING" which should have been included with this file. If this
10 // file is missing or damaged, see the license at:
11 //
12 // http://www.fltk.org/COPYING.php
13 //
14 // Please report all bugs and problems on the following page:
15 //
16 // http://www.fltk.org/str.php
17 //
18 
19 #include <config.h>
20 #include <FL/Enumerations.H>
21 
22 // one of these for each color in fltk's "colormap":
23 // if overlays are enabled, another one for the overlay
24 struct Fl_XColor {
25  unsigned char r,g,b; // actual color used by X
26  unsigned char mapped; // true when XAllocColor done
27  unsigned long pixel; // the X pixel to use
28 };
29 extern Fl_XColor fl_xmap[/*overlay*/][256];
30 
31 // mask & shifts to produce xcolor for truecolor visuals:
32 extern unsigned char fl_redmask, fl_greenmask, fl_bluemask;
34 
35 //
36 // End of "$Id: Fl_XColor.H 8864 2011-07-19 04:49:30Z greg.ercolano $".
37 //
int fl_extrashift
color shift used in current color map handling
Definition: fl_color.cxx:55
int fl_greenshift
color shift used in current color map handling
Definition: fl_color.cxx:53
This file contains type definitions and general enumerations.
Fl_XColor fl_xmap[1][256]
HAVE_OVERLAY determines whether fl_xmap is one or two planes.
Definition: fl_color.cxx:113
uchar fl_redmask
color mask used in current color map handling
Definition: fl_color.cxx:48
Definition: Fl_XColor.H:24
uchar fl_greenmask
color mask used in current color map handling
Definition: fl_color.cxx:49
uchar fl_bluemask
color mask used in current color map handling
Definition: fl_color.cxx:50
int fl_redshift
color shift used in current color map handling
Definition: fl_color.cxx:52
int fl_blueshift
color shift used in current color map handling
Definition: fl_color.cxx:54