Jump to content

FLTK: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Use: <ref>http://www.georgpotthast.de/</ref>
not a reference
Line 57: Line 57:


Many programs and projects use FLTK, including:
Many programs and projects use FLTK, including:
* [[Nanolinux]], 14 MB Linux distribution<ref>{{cite web|url=https://sourceforge.net/projects/nanolinux/|title=Nanolinux Official Website}}</ref><ref>https://eerielinux.wordpress.com/2014/11/30/tiny-to-the-extreme-nanolinux/</ref><ref>https://eerielinux.wordpress.com/2014/12/30/an-interview-with-the-nanolinux-developer/</ref><ref>https://web.archive.org/web/19990420083003/http://tawny.cs.nott.ac.uk:80/~sbx/winnie/aim/overview.htm</ref><ref>http://sites.utoronto.ca/webdocs/HTMLdocs/PCTOOLS/pc_editors.html</ref><ref>http://www.georgpotthast.de/</ref><ref>[[User talk:Georg Potthast]]</ref>
* [[Nanolinux]], 14 MB Linux distribution<ref>{{cite web|url=https://sourceforge.net/projects/nanolinux/|title=Nanolinux Official Website}}</ref><ref>https://eerielinux.wordpress.com/2014/11/30/tiny-to-the-extreme-nanolinux/</ref><ref>https://eerielinux.wordpress.com/2014/12/30/an-interview-with-the-nanolinux-developer/</ref><ref>https://web.archive.org/web/19990420083003/http://tawny.cs.nott.ac.uk:80/~sbx/winnie/aim/overview.htm</ref><ref>http://sites.utoronto.ca/webdocs/HTMLdocs/PCTOOLS/pc_editors.html</ref><ref>http://www.georgpotthast.de/</ref><
* XFDOS, a FreeDOS-based distribution with a [[GUI]], porting [[Nano-X]] and [[FLTK]]<ref>https://eerielinux.wordpress.com/2012/10/12/an-extraordinary-tk-example/</ref><ref>https://eerielinux.wordpress.com/2014/12/30/an-interview-with-the-nanolinux-developer/</ref><ref>https://web.archive.org/web/19990420083003/http://tawny.cs.nott.ac.uk:80/~sbx/winnie/aim/overview.htm</ref><ref>http://www.georgpotthast.de/</ref><ref>[[User talk:Georg Potthast]]</ref>
* XFDOS, a FreeDOS-based distribution with a [[GUI]], porting [[Nano-X]] and [[FLTK]]<ref>https://eerielinux.wordpress.com/2012/10/12/an-extraordinary-tk-example/</ref><ref>https://eerielinux.wordpress.com/2014/12/30/an-interview-with-the-nanolinux-developer/</ref><ref>https://web.archive.org/web/19990420083003/http://tawny.cs.nott.ac.uk:80/~sbx/winnie/aim/overview.htm</ref><ref>http://www.georgpotthast.de/</ref>
* [[Agenda VR3]], a [[Linux]]-based [[personal digital assistant]] with software based on FLTK.
* [[Agenda VR3]], a [[Linux]]-based [[personal digital assistant]] with software based on FLTK.
**[[third-party developer|third-party]] '''Agenda VR3''' software
**[[third-party developer|third-party]] '''Agenda VR3''' software

Revision as of 15:37, 20 April 2018

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, Windows, AmigaOS 4
TypeUser interface library
LicenseGNU Lesser General Public License version 2[2] (with an exception to allow static linking)
Websitefltk.org

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.

Using its own widget, drawing and event systems (though FLTK2 has gained experimental support for optionally using the cairo graphics library) 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 for the X Window System, FLTK works on other platforms, including Microsoft Windows (interfaced with the Windows API), and OS X (interfaced with Quartz). HTML5 and Wayland back-ends are in development.[citation needed]

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.[6]

FLTK was mainly designed for, and is written in, the programming language C++. However, bindings exist for other languages, for example Lua,[7] Perl,[8] Python,[9] Ruby[10] and Tcl.[11]

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();
}

GUI designers

FLTK includes Fast Light User Interface Designer (FLUID), a graphical GUI designer that generates C++ source and header files.

Use

Many programs and projects use FLTK, including:

  • Nanolinux, 14 MB Linux distribution[12][13][14][15][16][17]<
  • XFDOS, a FreeDOS-based distribution with a GUI, porting Nano-X and FLTK[18][19][20][21]
  • Agenda VR3, a Linux-based personal digital assistant with software based on FLTK.
  • Amnesia: The Dark Descent, by Frictional Games uses FLTK as its launcher application
  • Audio:
  • 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]
  • SmallBASIC, Windows port
  • TorApp.Info, online security printing platform, a google native client[31]
  • Web browsers:
    • Dillo, Dillo-2 was based on FLTK-2, abandoning this FLTK branch, with no official release, was a major cause of Dillo-3 being started, using FLTK1.3
    • Fifth, replicates functioning of early Opera[32]
    • NetRider[33]
  • X window managers:

Versions

This version history is an example of the sometimes tumultuous nature of open source development.[34]

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.[35] 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

References

  1. ^ https://www.fltk.org/articles.php?L1898
  2. ^ "FLTK License Agreement".
  3. ^ "FLTK home".
  4. ^ http://www.cpplibs.com/libraries/fltk/
  5. ^ http://www.fltk.org/articles.php?L363+I0+TFAQ+P1+Q
  6. ^ "GTK+ Language Bindings".
  7. ^ "murgaLua homepage".
  8. ^ http://www.fltk.org/wiki.php?LC+P139+TC+Q
  9. ^ "pyFLTK homepage".
  10. ^ "Ruby/FLTK homepage".
  11. ^ "Tcl/Fltk homepage".
  12. ^ "Nanolinux Official Website".
  13. ^ https://eerielinux.wordpress.com/2014/11/30/tiny-to-the-extreme-nanolinux/
  14. ^ https://eerielinux.wordpress.com/2014/12/30/an-interview-with-the-nanolinux-developer/
  15. ^ https://web.archive.org/web/19990420083003/http://tawny.cs.nott.ac.uk:80/~sbx/winnie/aim/overview.htm
  16. ^ http://sites.utoronto.ca/webdocs/HTMLdocs/PCTOOLS/pc_editors.html
  17. ^ http://www.georgpotthast.de/
  18. ^ https://eerielinux.wordpress.com/2012/10/12/an-extraordinary-tk-example/
  19. ^ https://eerielinux.wordpress.com/2014/12/30/an-interview-with-the-nanolinux-developer/
  20. ^ https://web.archive.org/web/19990420083003/http://tawny.cs.nott.ac.uk:80/~sbx/winnie/aim/overview.htm
  21. ^ http://www.georgpotthast.de/
  22. ^ Giada, hardcore loopmachine
  23. ^ Prodatum
  24. ^ DiSTI GL Studio
  25. ^ ForcePAD
  26. ^ RoboCIM - Robotics software
  27. ^ FlBurn
  28. ^ Open Movie Editor
  29. ^ OpenVSP
  30. ^ PosteRazor
  31. ^ TorApp.Info online security printing platform
  32. ^ Fifth browser
  33. ^ NetRider
  34. ^ "What are the Versions of FLTK?". Retrieved 2010-07-23.
  35. ^ http://www.fltk.org/articles.php?L825 taken 2017 march 5.
  36. ^ http://www.fltk.org/articles.php?L825 Taken 2017 March 5.