Fluid

list window FLUID (Fast Light User Interface Designer) is a graphical editor and GUI builder that is used to produce FLTK source code.

Uses your system voice; voice and rate in settings.

≈ 5 min read

Cite, export and learn8 citation formats · 8 exports · lesson and quiz

Names in other languages

No names in other languages are held for this entry yet.

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

FLUID (Fast Light User Interface Designer) is a graphical editor and GUI builder that is used to produce FLTK source code. FLUID edits and saves its state in text .fl files, which can be edited in a text editor for finer control over display and behavior.[1]

After designing the application, FLUID compiles the .fl file into a .cxx file, which defines all the objects from the .fl file, and an .h file, which declares all the global ones.[2] FLUID also supports localization of label strings using message files and the GNU gettext or POSIX catgets interfaces.[3]

A simple program can be made by putting all non-interface code (including a main function) into the .fl file, thus making the .cxx file a single source file to compile. Most programs are more complex than this, so other .cxx files can be written that call the FLUID functions. These .cxx files must #include the .h file, or they can #include the .cxx file so it still appears to be a single source file.

Normally the FLUID file defines one or more functions or classes, which output C++ code. Each function defines one or more FLTK windows, and all the widgets that go inside those windows.

Widgets created by FLUID are "named", "complex named", or "unnamed". A named widget has a legal C++ variable identifier as its name (i.e. only alphanumeric and underscore), and is defined by a global variable or class member that will point at the widget after the function defining it is called. A complex named object has punctuation such as '.' or '->' or any other symbols in its name. In this case, FLUID assigns a pointer to the widget to the name, but does not attempt to declare it. This can be used to get the widgets into structures. An unnamed widget has a blank name and no pointer is stored.

Widgets may either call a named callback function that one writes in another source file, or one can supply a small piece of C++ source and FLUID will write a private callback function into the .cxx file.

Code View window

edit edit source

While editing the program FLUID the user can look at the Code View window which shows exactly how the C++ output of the program would look. The Code View window supports auto refreshing (when something in the program is changed, Code View will automatically change the source code being shown) which can be disabled by the user. It won't let the user change the code being shown through it. Code View is part of FLUID and is not automatically shown on startup. It can be enabled through FLUID's menu.

Widget bin window

edit edit source

See also

edit edit source

References

edit edit source
  1. ^ Reference, from the FLTK documentation Wikipedia revision 1378695245, retrieved 2026-11-18
  2. ^ FLTK 1.3.3: Programming with FLUID, from the FLTK manual. Wikipedia revision 1378695245, retrieved 2026-11-18
  3. ^ "Internationalization with FLUID". FLTK manual. FLTK 1.3.3: Programming with FLUID. Wikipedia revision 1378695245, retrieved 2026-11-18
edit edit source Graphical user interface buildersQt GTK wxWidgets CLI VCL,
related Cocoa Java-based Windows API Other List of widget toolkitsLow-level platform-specificOn AmigaOS On Classic Mac OS, macOS On Windows On Unix On BeOS, Haiku On Android Low Level Cross-platformC Java High-level, platform-specificOn AmigaOS On Classic Mac OS, macOS On Windows On Unix and X11 High-level, cross-platformC C++ Objective-C CLI Adobe Flash Go Haskell Java JavaScript Common Lisp Lua Pascal Object Pascal Perl PHP Python Ruby Tcl XML shell Dart

Text derived from https://en.wikipedia.org/w/index.php?oldid=1378695245 under CC BY-SA 4.0; modifications have been made.

Words in each sectionCode View windowCode View windowCode View window: 92 words92See alsoSee alsoSee also: 20 words20Widget bin windowWidget bin windowWidget bin window: 3 words3
Words in each section. Measured from the stored article body; sections below the minimum are not plotted.

Provenance

snapshot enwiki-001378657686 · captured 2026-10-05 · ledger · version history

Cite this page as: encyclopegia.org, “Fluid”, snapshot enwiki-001378657686. https://encyclopegia.org/a/fluid