FLTK 1.3.3
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
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
;
33
extern
int
fl_redshift
,
fl_greenshift
,
fl_blueshift
,
fl_extrashift
;
34
35
//
36
// End of "$Id: Fl_XColor.H 8864 2011-07-19 04:49:30Z greg.ercolano $".
37
//
© 1998-2014 by Bill Spitzak and others.