GUIs, introduction and list
Before starting an application, if we do not target a particular system, we should choose a graphical user interface, and a wide choice is offered to the programmer.
But above all, for a lambda programmer, unrelated to a particular environment, a fact must be taken into consideration: the future of programming is not Windows (or any other system), it is in mobile devices and Web applications running on a server, so should we use a framework able to run on a server and a mobile.
Classical user interface on the desktop operate on the
WIMP model. It is the acronym of Window, Icon, Menu, Pointing device. The principle was developed from 1973 by Xerox and popularized by Apple with the Macintosh and then by Microsoft from Windows 95.
This model is challenged by touch screens. In the case of mobiles, we are facing a considerable fragmentation of environments and graphical interfaces, as discussed in the article
, which we can overcome only with HTML 5. Programming a mobile phone List of toolkits and platforms
Toolkits contain predefined components used directly to create the interface of an application.
Qt, acquired by Nokia, then by Digia, was originally mainly used by KDE on Linux. It spread to all systems and is now the basis for programming applications for mobiles by Nokia. The toolbox, QtClick, provide a lot of ready to use code.
Since version 5.1 applications run on Android and iOS as well.
OpenGL and WebKit components.
QML language of interfaces. Great portability.
Several programming languages possible.
Allows 3D animations.
QtCreator visual development interface.
Used on (some) mobile.
Heavy file to download to the user.
The library of the Java programming language includes all components necessary to user interface. JavaFX makes it easier to build user interfaces.
It is possible to use Java classes in a C or PHP application.
Complete API for the desktop or the Web.
Several development tools (see resources).
Access to OpenGL with
jogl and Swing Canvas object.
Java is rather complex to use beside JavaFX.
Not especially fast.
WPF and WinRT
WPF is the GUI and devices layer on .NET. The API which provides access to all Windows services. WinRT is the runtime of Windows 8.
Nothing to download to the user.
Language of interface
XAML or HTML 5. Easy programming with Visual Studio.
Works only on Windows. Ports of WPF to other systems are incomplete and none for WinRT.
Slower in execution than native code.
The graphical framework for Gnome on Linux is ported to Windows. The best-known Windows application using this framework is the Gimp, and it is available on all operating systems.
There is a port of GTK for PHP, but not updated for ages and requires a modified version of the runtime.
GTK is considered as less convenient than Qt, to equal features, and more difficult to program.
Made by Google to replace GTK to give Chrome and ChromeOS a portable graphical framework, working on Linux and Android.
It is based on OpenGL and opens a context for each window, rather than each tab in order to save resources.
Aura is probably not easy to use for an application as it is designed for the browser, but as the trend is to use the browser as the interface to the system (what ChromeOS essentially does), this framework is indirectly universal.
One can also argue that GTK has been made for Gimp and became universal, Aura could follow the same route.
If you are looking for a very simple interface library to implement in a C++ application , ImGui may be the solution. The code is as simple as this:
ImGui::InputText("string", buffer, 128);
to display a text entry field and manage its operation. The library includes also functions for charts. It makes a heavy use of OpenGL and this can be inappropriate for some applications. It is the cost for its minimal dependencies to other libraries.
Tcl is a programming language and Tk a GUI toolkit, working with Tcl and other languages.
Ease of use.
Different programming languages available if needed.
Tcl is a dynamic language, and therefore is slow.
Tk is designed for Tcl.
Toolkit for creating graphical user interfaces in C.
Portable (Windows, Linux, Mac and others).
FLUID editor with a visual interface.
Less comprehensive than previous alternatives.
Restricted to the C programming language.
Toolkit for Windows, Linux, Mac based on GTK but using native widgets. It is used with different programming languages. Disadvantages appear at use due to its lack of flexibility.
In November 2013 came the version 3.0, the first update since 1998! This proves that the project is still alive, but it makes the next major release in 2028.
Toolbox to create interfaces in C. Ported to Windows, Linux and other Unix.
Can help give the look of Windows applications on Linux.
A library for game programming using all resources
(sound, video, devices) of the computer, for any language, any OS. This framework provides access to OpenGL and DirectX.
We can use many programming languages, including PHP, C, Java.
For Windows, Linux.
Programming applications in Flash. Very portable, but access to hardware is limited.
There APIs are interfaces to the systems, providing primitives used to create a library of components.
Portable graphics library, an alternative to DirectX, for optimal performance. It interfaces with the graphics card, and user must have a version for his graphics card, if not already installed by the seller.
There is an interface to OpenGL for browsers, WebGL.
To build your own components, you can use a tool box as
GLUT, which is not open source, unlike other libraries in this list. This will not approach the simplicity of Qt, but will be much lighter.
Named first Xr, the Greek letters are pronounced Chi and Ro, which gave the new name.
Vector graphics API. Compatible with many systems and programming languages.
This is an interface between a toolkit and OpenGL or DirectX.
The rendering engine of Chrome and Safari can also be used directly by an application and display HTML 5. There is a WebKit component in Qt.
Berkelium allows, like QtWebKit, integrating a browser into an application and use HTML 5 as interface language. The browser will then displayed as an objet in the scenery.
A library supported by Intel originally intended for Meego, the system for mobile, so using little space. This is actually an interface to OpenGL which simplifies its use. It has a toolbox,
Mx (like QT has QtClick). The programming language is C++ or Python. The projet is now a part of Gnome.
Interface to audio and graphic devices on Windows.
We see that when a framework offers the possibility of programming for mobile phones, one enters the circle of specializations, each platform running a system for a single brand.
Otherwise, when programming for the desktop but not specifically for Windows, Qt seems to be the most comprehensive framework while being portable. The license is LGPL.
Remain still the possibility to write his own components with OpenGL or WebKit if you need a very limited interface.
See a list of tools to make
graphical user interfaces on the page on EDI and a list of frameworks for mobile devices.
History and documents