[英]Tiny C++ cross-platform GUI toolkit
Which C++ cross-platform GUI toolkit gives smallest footprint with both static and dynamic builds? 哪个C ++跨平台GUI工具包在静态和动态构建中占用的空间最小? I don't need a very sophisticated GUI, just basic controls & widgets.
我不需要非常复杂的GUI,只需要基本的控件和小部件。
我听说过的最小的一个是fltk
The Tk from Tcl/Tk is well known of its small memory footprint. 来自Tcl / Tk的Tk以其小内存占用而闻名。 Details in Memory Footprint Comparisons on Tcl/Tk Wiki.
关于Tcl / Tk Wiki的内存占用比较的详细信息。 Both, Tcl and Tk, are extremely simple to use with C++/Tcl and C++/Tk libraries.
Tcl和Tk都非常易于与C ++ / Tcl和C ++ / Tk库一起使用。 They were inspired by Boost.Python
他们的灵感来自Boost.Python
With the Ecere SDK , you can build a statically linked executable under 1 MB. 使用Ecere SDK ,您可以构建1 MB以下的静态链接可执行文件。 A dynamic runtime library can also be built under 2 MB.
动态运行时库也可以在2 MB以下构建。 Ecere runs in a variety of display drivers, including X11, GDI, OpenGL, Direct3D.
Ecere运行在各种显示驱动程序中,包括X11,GDI,OpenGL,Direct3D。 It was originally designed for in-game GUIs, but it's now a rich general purpose cross-platform GUI toolkit.
它最初是为游戏内GUI设计的,但它现在是一个丰富的通用跨平台GUI工具包。
The SDK comes with a compiler for the eC language, an OO language which compiles down to native code, that can be linked with C++ at the C level (ie extern "C"). SDK附带了一个eC语言编译器,一种编译为本机代码的OO语言,可以在C级与C ++链接(即extern“C”)。
eC shares many basic OO concepts and syntax of C++, but offers simpler, more elegant code, especially for GUI development: it has properties, instance virtual methods for events, you use '.' eC分享了许多基本的OO概念和C ++语法,但提供了更简单,更优雅的代码,特别是对于GUI开发:它具有属性,事件的实例虚方法,您使用'。' instead of '->' for accessing heap objects members.
而不是' - >'来访问堆对象成员。 It still fully supports the entire C syntax, grammar and features.
它仍然完全支持整个C语法,语法和功能。 eC rids you of the pain of header files and prototypes as well, with a more modern import mechanism.
eC通过更现代的导入机制帮助您解决头文件和原型的痛苦。
这里有很多跨平台C ++ UI库列表中的几个最小选项: https : //philippegroarke.com/posts/2018/c++_ui_solutions/我认为你必须自己评估它们。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.