开发者

C++: GUI libraries for embedding into an interpreter

开发者 https://www.devze.com 2022-12-28 16:09 出处:网络
I\'ve got my开发者_运维百科 interpreter up and running - quite bug-free and stable for now - now I want to add some visual options to my language to play around.

I've got my开发者_运维百科 interpreter up and running - quite bug-free and stable for now - now I want to add some visual options to my language to play around.

  • What is a good GUI library easy to use and mainly easy to embed and "link" to my programming language?

  • What general rules do I have to follow?

I'm currently on XP with Microsoft Visual Studio 2010.


Depends on your language and it's properties. For example, if you can only expose C-style functions, then the default WinAPI supports this style. If you can do the whole C++ classes malarky, then you could do MFC, GDI+, WIC, etc.

Ultimately, if you want something easy to embed, it's simpler to write good embedding code than worry about what you're going to embed.


In various posts I have seen regarding UI Libraries QT and WxWidgets seem to be popular.

Look here for a list of features


Check out the fast light toolkit (FLTK) at http://fltk.org. From that website:

FLTK (pronounced "fulltick") is a cross-platform C++ GUI toolkit for UNIX®/Linux® (X11), Microsoft® Windows®, and MacOS® X. FLTK provides modern GUI functionality without the bloat and supports 3D graphics via OpenGL® and its built-in GLUT emulation.

0

精彩评论

暂无评论...
验证码 换一张
取 消