Skip to content

yanlinlin82/cpp-webui

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
ext
 
 
 
 
 
 
 
 
 
 
 
 

CPP-WebUI - C++ Graphical User Interface Library

Motivation

This library provide a framework for cross-platform GUI (Graphical User Interface) program development by C++. The essential idea is to run as web service, and use web page front technology to improve the user experience. Even in a desktop program, we use the same http server/client model.

Quick Start

This library is published as single header. You can easily start to use the library by includeing it:

#include <cpp-webui.h>

After that, define the UI elements and actions in C++ code:

int main()
{
    webui::window w("CPP-WebUI Demo");
    webui::textbox t("Hello!");
    webui::button b("Demo");
    b.onclick = [] { t.set_text("Hello, CPP-WebUI!"); }
    w += t + b;
    return webui::run();
}

Build and run it:

$ g++ demo.cpp && ./a.out

and then open http://localhost:1234/ in web browser.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published