FLTK 1.3.11
Toggle main menu visibility
Loading...
Searching...
No Matches
Fl_XColor.H
1
//
2
// "$Id$"
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$".
37
//
Enumerations.H
This file contains type definitions and general enumerations.
fl_greenshift
int fl_greenshift
color shift used in current color map handling
Definition
fl_color.cxx:53
fl_greenmask
uchar fl_greenmask
color mask used in current color map handling
Definition
fl_color.cxx:49
fl_bluemask
uchar fl_bluemask
color mask used in current color map handling
Definition
fl_color.cxx:50
fl_blueshift
int fl_blueshift
color shift used in current color map handling
Definition
fl_color.cxx:54
fl_redshift
int fl_redshift
color shift used in current color map handling
Definition
fl_color.cxx:52
fl_extrashift
int fl_extrashift
color shift used in current color map handling
Definition
fl_color.cxx:55
fl_xmap
Fl_XColor fl_xmap[1][256]
HAVE_OVERLAY determines whether fl_xmap is one or two planes.
Definition
fl_color.cxx:113
fl_redmask
uchar fl_redmask
color mask used in current color map handling
Definition
fl_color.cxx:48
Fl_XColor
Definition
Fl_XColor.H:24
src
Fl_XColor.H
Generated by
1.17.0