FLTK 1.4.4

Loading...
Searching...
No Matches
Fl_XColor.H
1//
2// X-specific color definitions for the Fast Light Tool Kit (FLTK).
3//
4// Copyright 1998-2010 by Bill Spitzak and others.
5//
6// This library is free software. Distribution and use rights are outlined in
7// the file "COPYING" which should have been included with this file. If this
8// file is missing or damaged, see the license at:
9//
10// https://www.fltk.org/COPYING.php
11//
12// Please see the following page on how to report bugs and issues:
13//
14// https://www.fltk.org/bugs.php
15//
16
17#ifndef FL_DOXYGEN
18#include <config.h>
19#include <FL/Enumerations.H>
20
21// one of these for each color in fltk's "colormap":
22// if overlays are enabled, another one for the overlay
23 struct Fl_XColor {
24 unsigned char r,g,b; // actual color used by X
25 unsigned char mapped; // true when XAllocColor done
26 unsigned long pixel; // the X pixel to use
27};
28 extern Fl_XColor fl_xmap[/*overlay*/][256];
29
30// mask & shifts to produce xcolor for truecolor visuals:
31 extern unsigned char fl_redmask, fl_greenmask, fl_bluemask;
32 extern int fl_redshift, fl_greenshift, fl_blueshift, fl_extrashift;
33#endif // FL_DOXYGEN
Enumerations.H
This file contains type definitions and general enumerations.