FLTK 1.4.0
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#include <config.h>
18#include <FL/Enumerations.H>
19
20// one of these for each color in fltk's "colormap":
21// if overlays are enabled, another one for the overlay
22struct Fl_XColor {
23 unsigned char r,g,b; // actual color used by X
24 unsigned char mapped; // true when XAllocColor done
25 unsigned long pixel; // the X pixel to use
26};
27extern Fl_XColor fl_xmap[/*overlay*/][256];
28
29// mask & shifts to produce xcolor for truecolor visuals:
30extern unsigned char fl_redmask, fl_greenmask, fl_bluemask;
31extern int fl_redshift, fl_greenshift, fl_blueshift, fl_extrashift;
This file contains type definitions and general enumerations.
Definition Fl_XColor.H:22