guino ~main

Create your GUI in D with webview


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

guino Build status docs

Unleash guino magic for effortless GUI development in D!

Hello, world!

Add guino to your dub project:

dub add guino

Minimal example:

  import guino;
  void main()
  {
    WebView wv = WebView(true);
    wv.html = "<html><body>hello world</body></html>";
    wv.size(640, 480, WEBVIEW_HINT_FIXED);
    wv.run();
  }

How does it works?

More examples here

Build libwebview on linux/macOS

Checkout this repository with all submodules:

git clone --recurse-submodules  https://github.com/trikko/guino

Compile libwebview (see also):

guino/webview/script/build.sh build

Install libwebview in your system:

sudo cp guino/webview/build/library/libwebview.* /usr/local/lib/

On linux, run sudo ldconfig to update the cache.

Extra steps on macOS:

Make sure that the path /usr/local/lib is included in the DYLD_LIBRARY_PATH environment variable. For example, you can run your project with:

DYLD_LIBRARY_PATH=/usr/local/lib dub

Alternatively, you can add the following line to your bashrc:

export DYLD_LIBRARY_PATH=/usr/local/lib

and run it with dub

Build libwebview on windows

Libraries for windows are shipped inside the repository but you can build from source:

git clone --recurse-submodules  https://github.com/trikko/guino

Compile libwebview (see also):

guino/webview/script/build.bat build
Authors:
  • Andrea Fontana
Dependencies:
none
Versions:
0.1.3 2023-Oct-16
0.1.2 2023-Oct-16
0.1.1 2023-Oct-16
0.1.0 2023-Oct-15
~main 2024-Sep-17
Show all 5 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 63 downloads total

Score:
0.8
Short URL:
guino.dub.pm