fltk

FLTK High-Level D API

This package provides idiomatic D wrappers for the FLTK toolkit, offering:

  • RAII-based resource management with deterministic destruction
  • Range-based iteration for container widgets
  • Delegate callbacks for event handling
  • Property-based access to widget attributes
  • Safe and @nogc operations where possible

The high-level API wraps the low-level bindings in ddn.lib.fltk and provides a more D-friendly interface without the Fl prefix conventions.

Example:

import fltk;

void main() {
   auto window = new Window(300, 200, "Hello FLTK");
   auto button = new Button(100, 80, 100, 30, "Click Me");
   button.onClick = () {
      writeln("Button clicked!");
   };
   window.show();
   run();
}

Authors

Dejan Lekić

License

BSD-3-Clause
No exported symbols.