Fluid

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.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. FLUID also supports localization of label strings using message files and the GNU gettext or POSIX catgets interfaces.

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.

View More On Wikipedia.org
  • 1916

    Greg Bernhardt

    A PF Singularity From USA
    • Messages
      19,443
    • Media
      227
    • Reaction score
      10,021
    • Points
      1,237
  • 2

    Addem

    A PF Atom
    • Messages
      20
    • Reaction score
      0
    • Points
      31
  • 2

    g_mogni

    A PF Atom
    • Messages
      48
    • Reaction score
      0
    • Points
      31
  • 1

    Toro

    A PF Quark
    • Messages
      2
    • Reaction score
      0
    • Points
      1
  • 1

    sam_smk

    A PF Electron
    • Messages
      15
    • Reaction score
      0
    • Points
      11
  • 1

    arpit.v

    A PF Electron
    • Messages
      8
    • Reaction score
      0
    • Points
      11
  • 1

    greypilgrim

    A PF Cell
    • Messages
      513
    • Reaction score
      36
    • Points
      103
  • 1

    genxium

    A PF Molecule From China
    • Messages
      141
    • Reaction score
      2
    • Points
      97
  • 1

    coquelicot

    A PF Organism
    • Messages
      299
    • Reaction score
      67
    • Points
      152
  • 1

    Arka420

    A PF Electron
    • Messages
      28
    • Reaction score
      0
    • Points
      11
  • 1

    bartekac

    A PF Electron
    • Messages
      15
    • Reaction score
      0
    • Points
      14
  • 1

    chiraganand

    A PF Molecule
    • Messages
      113
    • Reaction score
      1
    • Points
      78
  • 1

    Alexander83

    A PF Atom
    • Messages
      35
    • Reaction score
      0
    • Points
      31
  • 1

    IustitiaPrime

    A PF Atom
    • Messages
      8
    • Reaction score
      0
    • Points
      31
  • 1

    tonyjk

    A PF Molecule
    • Messages
      227
    • Reaction score
      3
    • Points
      63
  • 1

    smiddleton

    A PF Atom
    • Messages
      18
    • Reaction score
      0
    • Points
      31
  • 1

    Amad27

    A PF Electron
    • Messages
      412
    • Reaction score
      1
    • Points
      16
  • 1

    davidgrant23

    A PF Electron
    • Messages
      22
    • Reaction score
      0
    • Points
      11
  • 1

    ecfed

    A PF Electron
    • Messages
      2
    • Reaction score
      0
    • Points
      11
  • 1

    Patronex

    A PF Quark
    • Messages
      10
    • Reaction score
      0
    • Points
      1
  • Back
    Top