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.