This appendix lists the enumerations provided in the
<FL/Enumerations.H> header file, organized by
section. Constants whose value is zero are marked with "(0)",
this is often useful to know when programming.
Version Numbers
The FLTK version number is stored in a number of compile-time
constants:
FL_MAJOR_VERSION - The major release number, currently 1.
FL_MINOR_VERSION - The minor release number, currently 1.
FL_PATCH_VERSION - The patch release number, currently 0.
FL_VERSION - A combined floating-point version number for
the major, minor, and patch release numbers, currently 1.0100.
The Fl_Color enumeration type holds a FLTK color value.
Colors are either 8-bit indexes into a virtual colormap or 24-bit RGB
color values. Color indices occupy the lower 8 bits of the value, while
RGB colors occupy the upper 24 bits, for a byte organization of RGBI.
Color Constants
Constants are defined for the user-defined foreground and background
colors, as well as specific colors and the start of the grayscale ramp
and color cube in the virtual colormap. Inline functions are provided to
retrieve specific grayscale, color cube, or RGB color values.
The following color constants can be used to access the user-defined
colors:
FL_BACKGROUND_COLOR - the default
background color
FL_BACKGROUND2_COLOR - the default
background color for text, list, and valuator widgets
FL_FOREGROUND_COLOR - the default
foreground color (0) used for labels and text
FL_INACTIVE_COLOR - the inactive foreground
color
FL_SELECTION_COLOR - the default selection/highlight
color
The following color constants can be used to access the colors from the
FLTK standard color cube:
FL_BLACK
FL_BLUE
FL_CYAN
FL_DARK_BLUE
FL_DARK_CYAN
FL_DARK_GREEN
FL_DARK_MAGENTA
FL_DARK_RED
FL_DARK_YELLOW
FL_GREEN
FL_MAGENTA
FL_RED
FL_WHITE
FL_YELLOW
The inline methods for getting a grayscale, color cube, or
RGB color value are described in Appendix B - Function
Reference.
The following constants define the mouse cursors that are available in
FLTK. The double-headed arrows are bitmaps
provided by FLTK on X, the others are provided by system-defined
cursors.
FL_CURSOR_DEFAULT - the default cursor, usually an arrow (0)
FL_CURSOR_ARROW - an arrow pointer
FL_CURSOR_CROSS - crosshair
FL_CURSOR_WAIT - watch or hourglass
FL_CURSOR_INSERT - I-beam
FL_CURSOR_HAND - hand (uparrow on MSWindows)
FL_CURSOR_HELP - question mark
FL_CURSOR_MOVE - 4-pointed arrow
FL_CURSOR_NS - up/down arrow
FL_CURSOR_WE - left/right arrow
FL_CURSOR_NWSE - diagonal arrow
FL_CURSOR_NESW - diagonal arrow
FL_CURSOR_NONE - invisible
FD "When" Conditions
FL_READ - Call the callback when there is data to be
read.
FL_WRITE - Call the callback when data can be written
without blocking.
FL_EXCEPT - Call the callback if an exception occurs on
the file.