Crate wv_sys

Crate wv_sys 

Source

Structs§

webview_version_info_t
Holds the library’s version information.
webview_version_t
Holds the elements of a MAJOR.MINOR.PATCH version number.

Constants§

webview_error_t_WEBVIEW_ERROR_CANCELED
Operation canceled.
webview_error_t_WEBVIEW_ERROR_DUPLICATE
Signifies that something already exists.
webview_error_t_WEBVIEW_ERROR_INVALID_ARGUMENT
One or more invalid arguments have been specified e.g. in a function call.
webview_error_t_WEBVIEW_ERROR_INVALID_STATE
Invalid state detected.
webview_error_t_WEBVIEW_ERROR_MISSING_DEPENDENCY
Missing dependency.
webview_error_t_WEBVIEW_ERROR_NOT_FOUND
Signifies that something does not exist.
webview_error_t_WEBVIEW_ERROR_OK
OK/Success. Functions that return error codes will typically return this to signify successful operations.
webview_error_t_WEBVIEW_ERROR_UNSPECIFIED
An unspecified error occurred. A more specific error code may be needed.
webview_hint_t_WEBVIEW_HINT_FIXED
Window size can not be changed by a user.
webview_hint_t_WEBVIEW_HINT_MAX
Width and height are maximum bounds.
webview_hint_t_WEBVIEW_HINT_MIN
Width and height are minimum bounds.
webview_hint_t_WEBVIEW_HINT_NONE
Width and height are default size.
webview_native_handle_kind_t_WEBVIEW_NATIVE_HANDLE_KIND_BROWSER_CONTROLLER
Browser controller. @c WebKitWebView pointer (WebKitGTK), @c WKWebView pointer (Cocoa/WebKit) or @c ICoreWebView2Controller pointer (Win32/WebView2).
webview_native_handle_kind_t_WEBVIEW_NATIVE_HANDLE_KIND_UI_WIDGET
Browser widget. @c GtkWidget pointer (GTK), @c NSView pointer (Cocoa) or @c HWND (Win32).
webview_native_handle_kind_t_WEBVIEW_NATIVE_HANDLE_KIND_UI_WINDOW
Top-level window. @c GtkWindow pointer (GTK), @c NSWindow pointer (Cocoa) or @c HWND (Win32).

Functions§

webview_bind
Binds a function pointer to a new global JavaScript function.
webview_create
Creates a new webview instance.
webview_destroy
Destroys a webview instance and closes the native window.
webview_dispatch
Schedules a function to be invoked on the thread with the run/event loop.
webview_eval
Evaluates arbitrary JavaScript code.
webview_get_native_handle
Get a native handle of choice.
webview_get_window
Returns the native handle of the window associated with the webview instance. The handle can be a @c GtkWindow pointer (GTK), @c NSWindow pointer (Cocoa) or @c HWND (Win32).
webview_init
Injects JavaScript code to be executed immediately upon loading a page. The code will be executed before @c window.onload.
webview_navigate
Navigates webview to the given URL. URL may be a properly encoded data URI.
webview_return
Responds to a binding call from the JS side.
webview_run
Runs the main loop until it’s terminated.
webview_set_html
Load HTML content into the webview.
webview_set_size
Updates the size of the native window.
webview_set_title
Updates the title of the native window.
webview_terminate
Stops the main loop. It is safe to call this function from another background thread.
webview_unbind
Removes a binding created with webview_bind().
webview_version
Get the library’s version information.

Type Aliases§

webview_error_t
@brief Error codes returned to callers of the API.
webview_hint_t
Window size hints
webview_native_handle_kind_t
Native handle kind. The actual type depends on the backend.
webview_t
Pointer to a webview instance.