This version of the module is deprecated: This package is deprecated. moonbit-community/proton should be preferred.
justjavac/proton/webview does not have a README file
#external
pub type BindingHandletype Webviewlet webview = @webview.Webview::new(debug=1)
webview.set_title("My Webview")
webview.set_size(800, 600, @webview.SizeHint::None)
webview.set_html("<html><body><h1>Hello, World!</h1></body></html>")
webview.dispatch(fn() { webview.terminate() })
webview.run()let webview = @webview.Webview::new()
webview.navigate("https://www.example.com")
webview.navigate("data:text/html,<h1>Hello, World!</h1>")
webview.navigate("data:text/html;base64,PGgxPkhlbGxvPC9oMT4=")
webview.dispatch(fn() { webview.terminate() })
webview.run()let webview = @webview.Webview::new()
webview.set_html("<html><body><h1>Hello, World!</h1></body></html>")
webview.dispatch(fn() { webview.terminate() })
webview.run()fn backend_available() -> Boolfn webview_bind(webview : Webview_t, name : Bytes, call_closure : FuncRef[(CStr, CStr, (Bytes, Bytes) -> Unit) -> Unit], closure : (Bytes, Bytes) -> Unit) -> BindingHandleInstall
Download zipMoonBit bindings for webview, a tiny library for creating web-based desktop GUIs.