C - FLTK Enumerations

This appendix lists the enumerations provided in the <FL/Enumerations.H> header file, organized by section.

Version Numbers

The FLTK version number is stored in a number of compile-time constants:

Events

Events are identified by an Fl_Event enumeration value. The following events are currently defined:

Callback "When" Conditions

The following constants determine when a callback is performed:

Fl::event_key() Values

The following constants define the non-ASCII keys on the keyboard for FL_KEYBOARD and FL_SHORTCUT events:

Fl::event_state() Values

The following constants define bits in the Fl::event_state() value:

Alignment Values

The following constants define bits that can be used with Fl_Widget::align() to control the positioning of the label:

Fonts

The following constants define the standard FLTK fonts:
  • FL_HELVETICA - Helvetica (or Arial) normal.
  • FL_HELVETICA_BOLD - Helvetica (or Arial) bold.
  • FL_HELVETICA_ITALIC - Helvetica (or Arial) oblique.
  • FL_HELVETICA_BOLD_ITALIC - Helvetica (or Arial) bold-oblique.
  • FL_COURIER - Courier normal.
  • FL_COURIER_BOLD - Courier bold.
  • FL_COURIER_ITALIC - Courier italic.
  • FL_COURIER_BOLD_ITALIC - Courier bold-italic.
  • FL_TIMES - Times roman.
  • FL_TIMES_BOLD - Times bold.
  • FL_TIMES_ITALIC - Times italic.
  • FL_TIMES_BOLD_ITALIC - Times bold-italic.
  • FL_SYMBOL - Standard symbol font.
  • FL_SCREEN - Default monospaced screen font.
  • FL_SCREEN_BOLD - Default monospaced bold screen font.
  • FL_ZAPF_DINGBATS - Zapf-dingbats font.

    Colors

    The following color constants can be used to access the colors in the FLTK standard color palette:

    Cursors

    The following constants define the mouse cursors that are available in FLTK:

    FD "When" Conditions

    Damage Masks

    The following damage mask bits are used by the standard FLTK widgets: