Create a new WebView.
Create a callback in D for a js function.
Search for an element in the dom, using id. Returned element can forward calls to js.
Search for an element in the dom, using a css selector. Returned element can forward calls to js.
Create a new WebView.
Eval some js code. When it is done, func() is called (optional)
Set webview HTML directly.
Navigates webview to the given URL. URL may be a properly encoded data URI.
Injects JavaScript code at the initialization of the new page. Every time the webview will open a new page - this initialization code will be executed. It is guaranteed that code is executed before window.onload.
Reject a js promise
Resolve a js promise
Respond to a binding call from js.
Start the WebView. Be sure to set size before.
Set the window size
Set the window title
Removes a D callback that was previously set by bind()
Returns a handle to the native window
Helper function to convert bytes to data uri to embed inside html
Helper function to convert a file to data uri to embed inside html. It works at compile-time so you must set source import paths on your project.
A helper function to parse args passed as JSONValue[]
Helper function to convert bytes to data uri to embed inside html
The main struct