如何使用HTML / CSS UI构建本机C ++应用程序? [英] How to build native C++ apps with HTML/CSS UI?

查看:122
本文介绍了如何使用HTML / CSS UI构建本机C ++应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以开发一个C ++程序,同时使用HTML和CSS的用户界面?我知道使用JavaScript使用Webkit容器编程,但我对C ++开发感兴趣。

Is it possible to develop a C++ program while using HTML and CSS for the user interface? I know about programming with Javascript using a Webkit container, but I am really interested in C++ development.

在Windows下开发时,我感觉非常喜欢C#WPF,我搬到Linux,我没有找到一个很好的工具使用标记接口。为此,我想混合HTML和CSS,这是非常轻量级和易于使用,与C ++代码,像WPF的东西。

I felt in love with C# WPF when I developed under Windows, but now I moved to Linux and I haven't found a good tool for using markup for interfaces. For this, I would like to mix HTML and CSS, which are very lightweight and easy to use, with C++ code, with something like WPF.

哦,还有一件事:我正在寻找桌面开发,而不是网络。

Oh, one more thing: I'm looking for desktop development, not web.

推荐答案

是的,这是可能的。你想要的是一个C ++ web框架。您可以先查看 CppCMS -a免费高性能Web开发框架(而不是CMS),旨在快速Web应用程序开发。

Yes, it is possible. What you want is a C++ web framework. You could start by looking at CppCMS—a Free High Performance Web Development Framework (not a CMS) aimed for Rapid Web Application Development.

编辑:问题澄清后,我认为 Awesomium 将很适合您的需要。

Edit: After the question has been clarified, I think Awesomium would be a good fit for your needs.

您可以通过嵌入WebKit(或Gecko)实现相同的功能,但据我所知

You can achieve the same functionality by embedding WebKit (or Gecko) but as far as I know that is exactly what Awesomium does behind the scenes.

另一种方法是 librocket -a C ++接口中间件包为游戏应用程序设计。正如你可以从描述中猜到的,它是一个很适合游戏或实时应用程序。

An alternative is librocket—a C++ interface middleware package designed for game applications. As you can guess from the description it is a good fit for games or real-time applications.

这篇关于如何使用HTML / CSS UI构建本机C ++应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆