Tiny C ++ Cross Platform GUI

What cross-platform toolkit GUI C ++ provides the smallest area for static and dynamic assemblies? I don’t need a very complex graphical interface, only basic controls and widgets.

+7
c ++ user-interface cross-platform
source share
5 answers

The smallest I've heard of, fltk

+9
source share

Tk from Tcl / Tk is well known for its small footprint. Details in Comparison of memory traces on the Tcl / Tk Wiki. Both Tcl and Tk are extremely easy to use with C ++ / Tcl and C ++ / Tk . They were inspired by Boost.Python.

+3
source share

With the Ecere SDK, you can create a statically linked executable file under 1 MB. A dynamic runtime library can also be built under 2 MB. Ecere works in a variety of display drivers, including X11, GDI, OpenGL, Direct3D. It was originally designed for gaming graphical interfaces, but now it is a rich, versatile cross-platform graphical interface.

The SDK has a compiler for the eC language, the OO language, which compiles to its own code, which can be linked to C ++ at the C level (that is, extern "C").

eC has many basic OO concepts and C ++ syntax, but offers simpler and more elegant code, especially for GUI design: it has properties, instances of virtual methods for events, you use '.' instead of '->' to access members of the heap of objects. It still fully supports all the syntax, grammar and functions of C. eC saves you the pain of header and prototype files, as well as a more modern import mechanism.

+3
source share

try cegui . It was designed for a game goose that should be lightweight (for console games). I have never tried fltk . This may be more appropriate.

+1
source share

The long list of cross-platform C ++ UI libraries has a few minimal options: https://philippegroarke.com/posts/2018/C++_ui_solutions/ I think you'll have to evaluate them yourself.

0
source share

All Articles