FLTK
Fast Light Toolkit (FLTK, pronounced fulltick)[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.
Initial release | 1998 |
---|---|
Stable release | 1.3.8 (November 20, 2021[1]) [±] |
Preview release | experimental-2022-01 (January 23, 2022 ) [±] |
Repository | |
Written in | C++ |
Operating system | Unix-like with X11, macOS, Microsoft Windows, AmigaOS 4 |
Type | User interface library |
License | GNU Lesser General Public License version 2 with an exception to allow static linking[2] |
Website | www |
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.
Meaning of the name
FLTK was originally designed to be compatible with the Forms Library written for Silicon Graphics (SGI) machines (a derivative of this library called XForms is still used quite often). In that library, all functions and structures start with fl_
. This naming was extended to all new methods and widgets in the C++ library, and this prefix FL
was taken as the name of the library. After FL was released as open source, it was discovered that searching "FL" on the Internet was a problem, because it is also the abbreviation for Florida. After much debating and searching for a new name for the toolkit, which was already in use by several people, Bill Spitzak came up with Fast Light Tool Kit (FLTK).[5]
Architecture
FLTK is an object-oriented widget toolkit written in the programming language C++. While GTK is mainly optimized for the X Window System, FLTK works on other platforms, including Microsoft Windows (interfaced with the Windows API), and OS X (interfaced with Quartz). A Wayland back-end is being discussed.[6] FLTK2 has gained experimental support for optionally using the cairo graphics library.
Language bindings
A library written in one programming language may be used in another language if language bindings are written. FLTK has a range of bindings for various languages.[7]
FLTK was mainly designed for, and is written in, the programming language C++. However, bindings exist for other languages, for example Lua,[8] Perl,[9] Python,[10] Ruby,[11] Rust[12] and Tcl.[13]
For FLTK 1.x, this example creates a window with an Okay button:
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Button.H>
int main(int argc, char *argv[]) {
Fl_Window* w = new Fl_Window(330, 190);
new Fl_Button(110, 130, 100, 35, "Okay");
w->end();
w->show(argc, argv);
return Fl::run();
}
Use
Many programs and projects use FLTK, including:
- Nanolinux, 14 MB Linux distribution[14][15][16][17][18][19]
- XFDOS, a FreeDOS-based distribution with a GUI, porting Nano-X and FLTK[20][16][17][19]
- Agenda VR3, a Linux-based personal digital assistant with software based on FLTK.
- third-party Agenda VR3 software
- Amnesia: The Dark Descent, by Frictional Games uses FLTK as its launcher application
- MwendanoWD, Logic puzzle for personal computer by YPH.[21]
- Audio:
- Fldigi, amateur radio software, allows data transmission and text chat via digital modes such as PSK31
- Giada, looper, micro-sequencer, sample player software, open-source[22]
- Prodatum, synthesizer preset editor, uses a lifelike interface design[23]
- ZynAddSubFX, an open-source software synthesizer
- DiSTI GL Studio, human-machine interface development tool[24]
- Engineering:
- ForcePAD, an intuitive tool to visualise the behavior of structures subject to loading and boundary conditions[25]
- Gmsh, an open-source finite element mesh generator
- RoboCIM, software to simulate and control operation of a servo robot system and external devices[26]
- Equinox Desktop Environment (EDE)
- FlBurn optical disc burning software for Linux[27]
- Graphics:
- Avimator, a Biovision Hierarchy (BVH) editor
- CinePaint, deep-paint software, migrating from GTK to FLTK, open-source
- ITK-SNAP, software application for medical image segmentation, open-source
- Nuke, a digital compositing program. Until version 5, now replaced by Qt
- Open Movie Editor[28]
- OpenVSP, NASA parametric aircraft sketching, recently open-sourced[29]
- PosteRazor, open-source poster printing software for Windows, OS X, Linux[30]
- Tilemap Studio, An open-source tilemap editor for Game Boy, Color, Advance, DS, and SNES projects[31]
- SmallBASIC, Windows port
- Web browsers:
- Brain Visualizer: An open-source interactive visualizer for large-scale 3D brain models. Part of the Brain Organization Simulation System (BOSS) developed at Stony Brook University[34]
- X window managers:
- FLWM
- miwm
Versions
This version history is an example of the sometimes tumultuous nature of open-source development.[35]
1.0.x
This is a prior stable version, now unmaintained.
1.1.x
This is a prior stable version, now unmaintained.
2.0 branch
This was a development branch, long thought to be the next step in FLTK's evolution, with many new features and a cleaner programming style. It never achieved stability, and development has largely ceased. The branch is inactive now.
1.2.x
This was an attempt to take some of the best features of 2.0 and merge them back into the more popular 1.1 branch. It is no longer developed.
1.3.x
Current stable release.[36] Provides UTF-8 support.
1.4.x
Current development branch. Adds more features to 1.3.[36]
3.0 branch
This branch is mostly a conceptual model for future work. Now inactive.
See also
- GTK
- gtkmm (C++ binding of GTK)
- FOX toolkit
- IUP (software) - a multi-platform toolkit to build native graphical user interfaces
- Juce
- Qt (software)
- Visual Component Framework (VCF)
- Widget toolkit
- wxWidgets - cross platform open source C++ widgets toolkit developed by community
- U++
- List of widget toolkits
References
- https://www.fltk.org/articles.php?L1782+I0+T+P1+Q
- "FLTK License Agreement".
- "Fast Light Toolkit - Fast Light Toolkit (FLTK)". www.fltk.org.
- "Fast Light ToolKit (FLTK) » CppLibs". Archived from the original on 2015-05-18. Retrieved 2015-05-13.
- "Article #363: What does "FLTK" mean? - Fast Light Toolkit (FLTK)". www.fltk.org.
- "STR #3371: Wayland Display Server Protocol support - Fast Light Toolkit (FLTK)". www.fltk.org. Retrieved 2020-08-06.
- "GTK Language Bindings".
- "murgaLua homepage".
- "Links: By Category - Links - Fast Light Toolkit (FLTK)". www.fltk.org.
- "pyFLTK Home Page". pyfltk.sourceforge.io.
- "Ruby/FLTK". ruby-fltk.sourceforge.net.
- "fltk - Rust". docs.rs.
- "Tcl/Fltk dynamic extension for Tcl". SourceForge. 3 April 2013.
- "Nanolinux". SourceForge. 8 October 2016.
- "Tiny to the extreme: Nanolinux". 30 November 2014.
- "An interview with the Nanolinux developer". 30 December 2014.
- "Artificial Intelligence Methods". Archived from the original on 1999-04-20. Retrieved 2019-08-15.
- "PC HTML Editors".
- "Georg's Personal Homepage". www.georgpotthast.de.
- "An extraordinary TK example!". 12 October 2012.
- "YPH".
- "Giada, hardcore loopmachine". Archived from the original on 2011-09-25. Retrieved 2011-09-29.
- "prodatum - official homepage". prodatum.sourceforge.net.
- "DiSTI GL Studio". Archived from the original on 2012-08-15. Retrieved 2010-07-29.
- "ForcePAD". forcepad.sourceforge.net.
- "RoboCIM - Robotics software".
- "Free | CD DVD burning software for Linux". flburn.sourceforge.net.
- "Open Movie Editor - Free and Open Source Video Editor". www.openmovieeditor.org.
- "OpenVSP". openvsp.org.
- "PosteRazor - Make your own poster!". posterazor.sourceforge.io.
- "Tilemap Studio". GitHub. 18 October 2021.
- "Fifth - Home". fifth-browser.sourceforge.net.
- "NetRider". SourceForge. 23 February 2016.
- "Viz (Brain Visualizer)". GitHub. 25 August 2021.
- "What are the Versions of FLTK?". Retrieved 2010-07-23.
- https://www.fltk.org/articles.php?L825 Taken 5 March 2017.