FLTK

FLTK
Initial release1998; 26 years ago (1998)
Stable release1.3.9 (December 9, 2023; 11 months ago (2023-12-09)[1]) [±]
Preview releaseexperimental-2022-01 (January 23, 2022; 2 years ago (2022-01-23)) [±]
Repository
Written inC++
Operating systemUnix-like with X11, macOS, Microsoft Windows, AmigaOS 4
TypeUser interface library
LicenseGNU Lesser General Public License version 2 with an exception to allow static linking[2]
Websitewww.fltk.org

Fast Light Toolkit (FLTK)[3] is a cross-platform widget (graphical control element) library for graphical user interfaces (GUIs), developed by Bill Spitzak and others. Made to accommodate 3D graphics programming, it has an interface to OpenGL, but it is also suitable for general GUI programming.

Using its own widget, drawing and event systems abstracted from the underlying system-dependent code, it allows for writing programs which look the same on all supported operating systems.

FLTK is free and open-source software, licensed under GNU Lesser General Public License (LGPL) with an added clause permitting static linking from applications with incompatible licenses.

In contrast to user interface libraries like GTK, Qt, and wxWidgets, FLTK uses a more lightweight design and restricts itself to GUI functionality. Because of this, the library is very small (the FLTK "Hello World" program is around 100 KiB), and is usually statically linked. It also avoids complex macros, separate code preprocessors, and use of some advanced C++ features: templates, exceptions, and run-time type information (RTTI) or, for FLTK 1.x, namespaces. Combined with the modest size of the package, this makes it relatively easy to learn for new users.[4]

These advantages come with corresponding disadvantages. FLTK offers fewer widgets than most GUI toolkits and, because of its use of non-native widgets, does not have native look-and-feel on any platform.

  1. ^ https://www.fltk.org/articles.php?L1898
  2. ^ "FLTK License Agreement". Archived from the original on 2001-12-18. Retrieved 2020-01-30.
  3. ^ "Fast Light Toolkit - Fast Light Toolkit (FLTK)". www.fltk.org. Archived from the original on 2020-02-02. Retrieved 2020-01-30.
  4. ^ "Fast Light ToolKit (FLTK) » CppLibs". Archived from the original on 2015-05-18. Retrieved 2015-05-13.