A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/saucer/saucer below:

saucer/saucer: ๐Ÿ›ธ A modern, cross-platform C++ webview library

Build cross-platform desktop apps with C++ & Web Technologies

The documentation can be found here.

Examples can be found here.

Learn how to create your first saucer app here.

Saucer is a modern C++ webview library that allows you to build cross-platform desktop applications with ease.
It supports all three major desktop operating systems (Windows, Linux, MacOS) and has several backend implementations.

#include <saucer/smartview.hpp>

int main()
{
    auto app = saucer::application::init({
        .id = "example",
    });

    saucer::smartview webview{{
        .application = app,
    }};

    webview.set_size(900, 700);
    webview.set_title("Hello World!");

    webview.expose(
        "add_random",
        [&](float number)
        {
            auto random = webview.evaluate<float>("Math.random()").get();
            return number + random;
        },
        saucer::launch::async);

    webview.set_file("index.html");
    
    webview.show();
    app->run();

    return 0;
}


๐ŸŽ‰ Become part of this list!


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4