Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/trikko/guino
Unleash guino magic for effortless GUI development in D!
https://github.com/trikko/guino
d dlang dlanguage gui ui webview
Last synced: about 1 month ago
JSON representation
Unleash guino magic for effortless GUI development in D!
- Host: GitHub
- URL: https://github.com/trikko/guino
- Owner: trikko
- License: mit
- Created: 2023-10-15T14:28:44.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-17T09:55:48.000Z (5 months ago)
- Last Synced: 2024-09-17T12:27:41.991Z (5 months ago)
- Topics: d, dlang, dlanguage, gui, ui, webview
- Language: D
- Homepage:
- Size: 1.67 MB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# guino [![Build status](https://ci.appveyor.com/api/projects/status/vi5t1sv69iopb88d?svg=true)](https://ci.appveyor.com/project/trikko/guino) [docs](https://guino.dpldocs.info/guino.html)
Unleash guino magic for effortless GUI development in D!
### Hello, world!
Add guino to your dub project:
```
dub add guino
```Minimal example:
```d
import guino;
void main()
{
WebView wv = WebView(true);
wv.html = "hello world";
wv.size(640, 480, WEBVIEW_HINT_FIXED);
wv.run();
}
```### How does it works?
More examples [here](https://github.com/trikko/guino/tree/main/examples)### Build libwebview on linux/macOS
Checkout this repository with all submodules:
```
git clone --recurse-submodules https://github.com/trikko/guino
```Compile libwebview ([see also](https://github.com/webview/webview)):
```
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:
```bash
DYLD_LIBRARY_PATH=/usr/local/lib dub
```Alternatively, you can add the following line to your `bashrc`:
```bash
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](https://github.com/webview/webview)):
```
guino/webview/script/build.bat build
```