1 Home
Hassan DRAGA edited this page 2020-11-05 16:49:25 -04:00

WebUI WiKi

WebUI is a free and open source library that can help you using any installed web browser as your user interface. Basically you can transform an console app to a nice GUI application, in a easy way.

Why WebUI?

First, web technologies is the future., And web browsers today have everything a modern UI need, your application won't need any external library to run.

How its work?

Basically this library use Boost web server and WebSocket to maintaine the communication in binary mode between the web browser and your application. You receive any click events, and of course you can send data by executing JavaScript code.

How I can use it?

Please see examples folder.

API

  • Show window
my_window.show();                           // Default
my_window.show(webui::browser::firefox));   // Firefox
my_window.show(webui::browser::chrome));    // Chrome
my_window.show(webui::browser::edge));      // Edge
  • Get value
std::string foo = my_window.get_value("bar");
  • Set value
std::string foo = my_window.set_value("bar", "new value");
  • Other..

[ ! ] Comming soon.

License

GNU General Public License v3.0