The OpenD Programming Language

arsd.minigui_addons.webview

A webview (based on arsd.webview) for minigui.

For now at least, to use this, you MUST have a WebViewApp in scope in main for the duration of your gui application.

Warning: CEF spams the current directory with a bunch of files and directories. You might want to run your program in a dedicated location.

Members

Classes

WebViewWidget_CEF
class WebViewWidget_CEF
Undocumented in source.

Structs

BrowserSettings
struct BrowserSettings

Defines settings for a browser widget. Not all backends will respect all settings.

OpenNewWindowParams
struct OpenNewWindowParams

The openInNewWindow delegate is given these params.

SettingValue
struct SettingValue

Represents a browser setting that can be left default or specifically turned on or off.

Examples

/+ dub.sdl:
	name "web"
	dependency "arsd-official:minigui-webview" version="*"
+/

import arsd.minigui;
import arsd.minigui_addons.webview;

void main() {
	auto app = WebViewApp(null);
	auto window = new Window;
	auto webview = new WebViewWidget("http://dlang.org/", window);
	window.loop;
}

Meta

History

Added November 5, 2021. NOT YET STABLE.

status text and favicon change notifications implemented on Windows WebView2 on December 16, 2023 (so long as the necessary api version is available, otherwise it will silently drop it).

Dependencies: Requires arsd.png on Windows for favicons, may require more in the future.