小型的c++跨平台GUI工具包

时间:2021-07-24 12:02:49

Which C++ cross-platform GUI toolkit gives smallest footprint with both static and dynamic builds? I don't need a very sophisticated GUI, just basic controls & widgets. Thank you in advance.

哪一个c++跨平台的GUI工具包在静态和动态构建中提供了最小的内存空间?我不需要一个非常复杂的GUI,只需要基本的控件和小部件。提前谢谢你。

4 个解决方案

#1


9  

the smallest one I've heard of is fltk

我听说过的最小的一个是fltk

#2


3  

The Tk from Tcl/Tk is well known of its small memory footprint. Details in Memory Footprint Comparisons on Tcl/Tk Wiki. Both, Tcl and Tk, are extremely simple to use with C++/Tcl and C++/Tk libraries. They were inspired by Boost.Python

Tcl/Tk的Tk以其较小的内存占用而闻名。Tcl/Tk Wiki上内存占用比较的详细信息。Tcl和Tk都非常容易使用c++ /Tcl和c++ /Tk库。他们受到了Boost.Python的启发

#3


3  

With the Ecere SDK, you can build a statically linked executable under 1 MB. A dynamic runtime library can also be built under 2 MB. Ecere runs in a variety of display drivers, including X11, GDI, OpenGL, Direct3D. It was originally designed for in-game GUIs, but it's now a rich general purpose cross-platform GUI toolkit.

使用Ecere SDK,你可以在1 MB以下构建静态链接的可执行文件,也可以在2 MB以下构建动态运行时库,Ecere运行在各种显示驱动程序中,包括X11、GDI、OpenGL、Direct3D。它最初是为游戏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 (i.e. extern "C").

SDK附带了一个eC语言的编译器,这是一种面向对象语言,可以编译为本机代码,可以在C级(例如extern“C”)上与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 '.' instead of '->' for accessing heap objects members. It still fully supports the entire C syntax, grammar and features. eC rids you of the pain of header files and prototypes as well, with a more modern import mechanism.

eC共享许多c++的基本OO概念和语法,但是提供了更简单、更优雅的代码,特别是对于GUI开发:它有属性,事件的实例虚拟方法,您可以使用'。'而不是'->'来访问堆对象成员。它仍然完全支持整个C语法、语法和特性。eC通过更现代的导入机制消除了头文件和原型的痛苦。

#4


1  

try cegui. It was designed for game guis, which have to be light (for console games). I've never tried fltk. It may be more suitable.

cegui试试。它是为游戏gui设计的,它必须是轻的(用于控制台游戏)。我从来没有尝试过fltk。它可能更合适。

#1


9  

the smallest one I've heard of is fltk

我听说过的最小的一个是fltk

#2


3  

The Tk from Tcl/Tk is well known of its small memory footprint. Details in Memory Footprint Comparisons on Tcl/Tk Wiki. Both, Tcl and Tk, are extremely simple to use with C++/Tcl and C++/Tk libraries. They were inspired by Boost.Python

Tcl/Tk的Tk以其较小的内存占用而闻名。Tcl/Tk Wiki上内存占用比较的详细信息。Tcl和Tk都非常容易使用c++ /Tcl和c++ /Tk库。他们受到了Boost.Python的启发

#3


3  

With the Ecere SDK, you can build a statically linked executable under 1 MB. A dynamic runtime library can also be built under 2 MB. Ecere runs in a variety of display drivers, including X11, GDI, OpenGL, Direct3D. It was originally designed for in-game GUIs, but it's now a rich general purpose cross-platform GUI toolkit.

使用Ecere SDK,你可以在1 MB以下构建静态链接的可执行文件,也可以在2 MB以下构建动态运行时库,Ecere运行在各种显示驱动程序中,包括X11、GDI、OpenGL、Direct3D。它最初是为游戏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 (i.e. extern "C").

SDK附带了一个eC语言的编译器,这是一种面向对象语言,可以编译为本机代码,可以在C级(例如extern“C”)上与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 '.' instead of '->' for accessing heap objects members. It still fully supports the entire C syntax, grammar and features. eC rids you of the pain of header files and prototypes as well, with a more modern import mechanism.

eC共享许多c++的基本OO概念和语法,但是提供了更简单、更优雅的代码,特别是对于GUI开发:它有属性,事件的实例虚拟方法,您可以使用'。'而不是'->'来访问堆对象成员。它仍然完全支持整个C语法、语法和特性。eC通过更现代的导入机制消除了头文件和原型的痛苦。

#4


1  

try cegui. It was designed for game guis, which have to be light (for console games). I've never tried fltk. It may be more suitable.

cegui试试。它是为游戏gui设计的,它必须是轻的(用于控制台游戏)。我从来没有尝试过fltk。它可能更合适。