guino 0.2.0
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 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 .
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.
- 0.2.0 released a day ago
- trikko/guino
- MIT
- Copyright © 2023, Andrea Fontana
- Authors:
- Dependencies:
- none
- Versions:
-
0.2.0 2025-Apr-24 0.1.3 2023-Oct-16 0.1.2 2023-Oct-16 0.1.1 2023-Oct-16 0.1.0 2023-Oct-15 - Download Stats:
-
-
3 downloads today
-
3 downloads this week
-
5 downloads this month
-
81 downloads total
-
- Score:
- 1.0
- Short URL:
- guino.dub.pm