FOX toolkit
The FOX toolkit is an open-source, cross-platform widget toolkit, i.e.[src] a library of basic elements for building a graphical user interface (GUI).[src] FOX stands for Free Objects for X.[src] It features a hard-wired Windows 95–style theme available for both Microsoft Windows itself as well as the X Window System (which is used on many UNIX and UNIX-like operating systems).[src] The FOX toolkit has been released under the GNU Lesser General Public Licence.[src] Development began 1997 by Jeroen van der Zijp while he was affiliated at CFDRC.[src] Since then, Jeroen van der Zijp maintains the core library and test applications, with the help of user community.[src] The FOX toolkit is written in C++, with language bindings available for Python, Ruby and Eiffel.[src] The FOX source code distribution supports building with many different (commercial and free) C++ compilers.[src]
The FOX toolkit is an open-source, cross-platform widget toolkit, i.e.[src] a library of basic elements for building a graphical user interface (GUI).[src] FOX stands for Free Objects for X.[src] It features a hard-wired Windows 95–style theme available for both Microsoft Windows itself as well as the X Window System (which is used on many UNIX and UNIX-like operating systems).[src] The FOX toolkit has been released under the GNU Lesser General Public Licence.[src] Development began 1997 by Jeroen van der Zijp while he was affiliated at CFDRC.[src] Since then, Jeroen van der Zijp maintains the core library and test applications, with the help of user community.[src] The FOX toolkit is written in C++, with language bindings available for Python, Ruby and Eiffel.[src] The FOX source code distribution supports building with many different (commercial and free) C++ compilers.[src] ==Cross-platform compatibility== FOX differentiates itself in the following way from other cross-platform toolkits: Tk is a cross-platform toolkit but does not have all of the widgets that FOX considers desirable.[src] Qt up to version 4.5 used to have a licensing model that required a commercial license in some cases where FOX would not.[src] wxWidgets promotes the use of native widgets on each supported platform.[src] FLTK is a fast, low-footprint library that supports rapid application development, and requires less code to use, but lacks advanced widgets.[src] All of these toolkits have some support for programming natively on the classic Mac OS and/or macOS platforms, which FOX currently does not support.[src] FOX uses a technique similar to the Java Swing-style approach to display a graphical user interface to the screen, using only graphical primitives available on that platform, as opposed to the original Java AWT-style approach which used native widgets.[src] This means that applications will have a similar look and feel across platforms.[src] In theory, porting FOX to a new platform should also be easier than implementing support for native widgets.[src] On the downside, it usually means that FOX applications will look and feel different from native applications for those platforms, which some users may find confusing.[src] Also, certain native platform features may not be available immediately, such as comprehensive printing support or internationalized input handling, because they will need to be re-implemented in a cross-platform way before they can be used in FOX.[src] Some applications, like Xfe File Manager, allow changing the color scheme to better integrate with the system's theme colors.[src] On Arch Linux, an app called FOX Control Panel is available to change the color scheme of all FOX applications system-wide.[src] It ships with the main FOX Toolkit package.[src] ==Messaging system== FOX offers a transparent bi-directional messaging system.[src] Each widget sends its message to a certain target.[src] Each message is composed by a selector that identifies its kind and an id that is unique and provided by the widget's enumeration.[src] The advantage is that each widget can call a target widget's method in a transparent manner, even if the method does not exist.[src] Vice versa, in the implementation of the individual message handler, since the sender is known, the target can also dispatch a message to the sender.[src] This is a particularly important feature in component oriented software, where components may be written by different people, or even different organizations.[src] The FOX messaging system simplifies the GUI update strategy: during widget update, the widgets can ask from their targets to update them.[src] This means that a command message does not also have to explicitly update any widgets as it is typical.[src] In case an application implements N command messages each updating M widgets, then M*N updates must be executed and at most M*N messages must be implemented.[src] On the other hand, if widgets request for update, only N command messages and at most M update messages are implemented.[src] This strategy separates the GUI update from data changes, making the GUI a real-time reflection of the underlying data structures.[src] ==Hello World== The following example creates a FOX application and a dialog with a button on C++: include "fx.h" int main(int argc, char *argv[]) { FXApp application("Hello", "FoxTest"); application.init(argc, argv); FXMainWindow *main=new FXMainWindow(&application, "Hello", NULL, NULL, DECOR_ALL); new FXButton(main, "&Hello, World!", NULL, &application, FXApp::ID_QUIT); application.create(); main->show(PLACEMENT_SCREEN); return application.run(); } It is also possible to create dialogs with Python 2.2 and Ruby: FXPy !/usr/bin/env python3 from FXPy.fox import * import sys def runme(): app = FXApp("Hello", "Test") app.init(sys.argv) main = FXMainWindow(app, "Hello", None, None, DECOR_ALL) button = FXButton(main, "&Hello, World!", None, app, FXApp.ID_QUIT) app.create() main.show(PLACEMENT_SCREEN) app.run() if __name__ == "__main__": runme() FXRuby require 'fox16' include Fox application = FXApp.new("Hello", "FoxTest") main = FXMainWindow.new(application, "Hi", nil, nil, DECOR_ALL) FXButton.new(main, "&Hello, World!", nil, application, FXApp::ID_QUIT, LAYOUT_FILL_X | BUTTON_TOOLBAR | FRAME_RAISED | FRAME_THICK) application.create() main.show(PLACEMENT_SCREEN) application.run() ==Software built on FOX== CFD-View – a post-processing developed by ESI Group Abaqus/CAE – the pre- and post- processor of the Abaqus finite element suite bdStudio – an accurate and easy-to-use visualization tool for complex real time aerospace simulations developed by SAIC Intel Modular Test Architecture (IMTA) PVRShaman – a free shader-development studio from Imagination Technologies LinkCAD – a commercial format-conversion application for various CAD formats TMP Vision and SLIM – designed to meet the needs of complex FEA models Kerkythea – a multimethod render system Acronis True Image and other Acronis products Goggles Music Manager – a music collection manager and player xfe – a graphical file manager for the X Window System TnFOX – a fork of the FOX library SUMO (Simulation of Urban MObility) – a traffic simulator with a GUI editor ==See also== FLTK – a light, cross-platform, non-native widget toolkit GTK – a widget toolkit used by GNOME applications gtkmm – the official C++ interface to GTK IUP – a multi-platform toolkit for building native graphical user interfaces Juce Qt – a widget toolkit used by KDE Ultimate++ Widget toolkit wxWidgets – a cross-platform open-source C++ widget library, wrapping native widget toolkits List of widget toolkits ==References== ==External links==[src]
43 sentences · 43 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"FOX toolkit." encyclopegia.org, 2026, https://encyclopegia.org/wiki/fox-toolkit. Accessed 29 November 2026.
Chicago
"FOX toolkit." encyclopegia.org. Accessed November 29, 2026. https://encyclopegia.org/wiki/fox-toolkit.
APA
encyclopegia.org. (2026). FOX toolkit. Retrieved November 29, 2026, from https://encyclopegia.org/wiki/fox-toolkit
Accessed November 29, 2026 · CC BY-SA 4.0 · citation page · JSON