Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

FLUID

From Wikipedia, the free encyclopedia
Graphical editor and GUI builder
For other uses, seeFluid (disambiguation).
icon
This articleneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "FLUID" – news ·newspapers ·books ·scholar ·JSTOR
(October 2012) (Learn how and when to remove this message)
FLUID
FLUID's code view window shows how the C++ output would look like if written on the disk.
Type
LicenseGNU Lesser General Public Licence
Websitewww.fltk.org
FLUIDwidget list window

FLUID (FastLightUserInterfaceDesigner) is a graphical editor andGUI builder that is used to produceFLTKsource 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 supportslocalization of label strings using message files and theGNUgettext orPOSIXcatgets interfaces.[3]

A flowchart showing the steps needed to compile FLUID-generated code

A simple program can be made by putting all non-interface code (including amain 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 outputC++ 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 privatecallback function into the .cxx file.

Code View window

[edit]

While editing the program FLUID the user can look at the Code View window which shows exactly how theC++ 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 thesource 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]
FLUID's widget bin window

See also

[edit]

References

[edit]
  1. ^Reference, from the FLTK documentation
  2. ^FLTK 1.3.3: Programming with FLUID, from the FLTK manual.
  3. ^fltk.org/doc-1.3/fluid.html#fluid_i18n FLTK 1.3.3: Programming with FLUID, FLTK manual

External links

[edit]
Qt
Open source
GTK
Open source
Proprietary
wxWidgets
Open source
CLI
Open source
Proprietary
VCL,
related
Open source,LCL
Proprietary
Cocoa
Proprietary
Java-based
Open source
Proprietary
Windows API
Open source
Proprietary
Other
Open source
Proprietary
Low-level platform-specific
OnAmigaOS
OnClassic Mac OS,macOS
OnWindows
OnUnix
OnBeOS,Haiku
OnAndroid
CLI
Low Level Cross-platform
CLI
C
Java
High-level, platform-specific
OnAmigaOS
OnClassic Mac OS,macOS
Object Pascal
Objective-C,Swift
C++
CLI
OnWindows
CLI
C++
Object Pascal
OnUnix andX11
High-level, cross-platform
C
C++
Objective-C
CLI
Adobe Flash
Go
Haskell
Java
JavaScript
Common Lisp
Lua
Pascal
Object Pascal
Perl
PHP
Python
Ruby
Tcl
XML
shell
Dart
Retrieved from "https://en.wikipedia.org/w/index.php?title=FLUID&oldid=1333452584"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp