FLTK 1.3.2

- Main Page
- Related Pages
- Modules
- Classes
- Files

- File List
- File Members

Fl_XColor.H

    00001 //
    00002 // "$Id: Fl_XColor.H 8864 2011-07-19 04:49:30Z greg.ercolano $"
    00003 //
    00004 // X-specific color definitions for the Fast Light Tool Kit (FLTK).
    00005 //
    00006 // Copyright 1998-2010 by Bill Spitzak and others.
    00007 //
    00008 // This library is free software. Distribution and use rights are outlined in
    00009 // the file "COPYING" which should have been included with this file.  If this
    00010 // file is missing or damaged, see the license at:
    00011 //
    00012 //     http://www.fltk.org/COPYING.php
    00013 //
    00014 // Please report all bugs and problems on the following page:
    00015 //
    00016 //     http://www.fltk.org/str.php
    00017 //
    00018
    00019 #include <config.h>
    00020 #include <FL/Enumerations.H>
    00021
    00022 // one of these for each color in fltk's "colormap":
    00023 // if overlays are enabled, another one for the overlay
    00024 struct Fl_XColor {
    00025   unsigned char r,g,b;  // actual color used by X
    00026   unsigned char mapped; // true when XAllocColor done
    00027   unsigned long pixel;  // the X pixel to use
    00028 };
    00029 extern Fl_XColor fl_xmap[/*overlay*/][256];
    00030
    00031 // mask & shifts to produce xcolor for truecolor visuals:
    00032 extern unsigned char fl_redmask, fl_greenmask, fl_bluemask;
    00033 extern int fl_redshift, fl_greenshift, fl_blueshift, fl_extrashift;
    00034
    00035 //
    00036 // End of "$Id: Fl_XColor.H 8864 2011-07-19 04:49:30Z greg.ercolano $".
    00037 //