fltk.core.enums
FLTK Enumerations and Constants
This module provides D enumerations matching FLTK's Enumerations.H header. All enum member names follow UPPER_SNAKE_CASE convention per project style.
These enumerations cover:
- Event types (mouse, keyboard, focus, etc.)
- Key codes (special keys, function keys, modifiers)
- Colors (basic colors, grayscale ramp, color cube)
- Fonts (Helvetica, Courier, Times, etc.)
- Alignment flags
- Callback trigger flags (when)
- Box types (visual styles)
- Cursor types
- OpenGL mode flags
- Damage flags
License
BSD-3-ClauseCopyright
Copyright © 2025 DDN (D Developer Network) Members
Types 12
FLTK event types.
These values are returned by Fl::event() and passed to widget handle() methods. They indicate what kind of event occurred.
FLTK key codes.
These values represent keyboard keys and are used with Fl::event_key(). ASCII characters (32-126) use their ASCII values directly.
Keyboard modifier flags.
These flags indicate which modifier keys are held during an event. They can be combined with bitwise OR.
FLTK color type.
Colors are 32-bit unsigned integers. The format depends on the value:
- 0-255: Index into the FLTK colormap
- 0x00000000-0xFFFFFF00: RGB color (R in high byte, G, B, 0 in low byte)
Standard FLTK colors.
These are indices into FLTK's built-in colormap.
FLTK font indices.
These are indices into FLTK's font table.
FLTK alignment flags.
These flags control how labels and images are aligned within widgets. Multiple flags can be combined with bitwise OR.
FLTK callback trigger flags.
These flags control when a widget's callback is invoked.
FLTK cursor types.
These values specify the mouse cursor appearance.
FLTK mode flags for Fl_Gl_Window and display configuration.
These flags can be combined with bitwise OR.
FLTK damage flags.
These flags indicate what parts of a widget need to be redrawn.
FLTK label types.
These values control how widget labels are drawn.