Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thechampagne/webview-ada
Ada binding & wrapper for a tiny cross-platform webview library to build modern cross-platform GUIs.
https://github.com/thechampagne/webview-ada
ada ada-language binding library webview wrapper
Last synced: 5 days ago
JSON representation
Ada binding & wrapper for a tiny cross-platform webview library to build modern cross-platform GUIs.
- Host: GitHub
- URL: https://github.com/thechampagne/webview-ada
- Owner: thechampagne
- License: mit
- Created: 2024-06-02T22:54:13.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-06-02T23:33:08.000Z (5 months ago)
- Last Synced: 2024-10-19T05:26:21.036Z (17 days ago)
- Topics: ada, ada-language, binding, library, webview, wrapper
- Language: Ada
- Homepage:
- Size: 862 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# webview-ada
[![](https://img.shields.io/github/v/tag/thechampagne/webview-ada?label=version)](https://github.com/thechampagne/webview-ada/releases/latest) [![](https://img.shields.io/github/license/thechampagne/webview-ada)](https://github.com/thechampagne/webview-ada/blob/main/LICENSE)
Ada binding for a tiny cross-platform **webview** library to build modern cross-platform GUIs.
### Requirements
- Unix
- [GTK3](https://gtk.org/) and [WebKitGTK](https://webkitgtk.org/)
- Windows
- [WebView2 Runtime](https://developer.microsoft.com/en-us/microsoft-edge/webview2/)
- macOS
- [WebKit](https://webkit.org/)### Usage
```ada
with Webview; use Webview;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Exceptions; use Ada.Exceptions;procedure Main is
w : Webview_Type;
begin
w := Create;
Set_Title(w, "Basic Example");
Set_Size(w, 480, 320, None);
Set_Html(w, "Thanks for using webview!");
Run(w);
Destroy(w);
exception
when E: Webview_Error => Put_Line(Exception_Message(E));
end Main;
```### References
- [webview](https://github.com/webview/webview)### License
This repo is released under the [MIT License](https://github.com/thechampagne/webview-ada/blob/main/LICENSE).