Skip to content

trikko/guino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

guino 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();
  }

Dependencies

Guino requires webview library to be present either in your executable's directory or installed in your system path. Pre-compiled binaries for Windows can be found in the libs directory, while instructions for building the library from source are provided below.

How does it works?

More examples here

Build libwebview

Checkout this repository with all submodules:

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

Compile libwebview (see also):

cd guino/webview/
cmake -DWEBVIEW_BUILD=ON -DCMAKE_BUILD_TYPE=Release -DWEBVIEW_BUILD_EXAMPLES=OFF -DWEBVIEW_BUILD_DOCS=OFF -DWEBVIEW_BUILD_TESTS=OFF -DWEBVIEW_INSTALL_TARGETS=ON -DWEBVIEW_BUILD_AMALGAMATION=OFF -DWEBVIEW_ENABLE_CHECKS=OFF .
cmake --build . --config Release

Install libwebview in your system (optional, you can also just keep the library in your exe's directory):

cmake --install .

On linux, run sudo ldconfig to update the cache.

About

Unleash guino magic for effortless GUI development in D!

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages