iPlug2 - C++ Audio Plug-in Framework
Classes | Typedefs
IWebViewControl.h File Reference

A control that allows the embedding of HTML UI inside an IGraphics context using a platform-native webview and bi-directional communication with that content NOTE: this control attaches a sub view on top of the IGraphics view, so it will render all content on-top The platform native webviews run in a separate process and communicate via IPC. More...

#include "IControl.h"
#include "IPlugWebView.h"

Go to the source code of this file.

Classes

class  IWebViewControl
 A control that allows the embedding of HTML UI inside an IGraphics context using a platform-native webview and bi-directional communication with that content NOTE: this control attaches a sub view on top of the IGraphics view, so it will render all content on-top The platform native webviews run in a separate process and communicate via IPC. More...
 

Typedefs

using onReadyFunc = std::function< void(IWebViewControl *pWebView)>
 
using onMessageFunc = std::function< void(IWebViewControl *pWebView, const char *jsonMsg)>
 

Detailed Description

A control that allows the embedding of HTML UI inside an IGraphics context using a platform-native webview and bi-directional communication with that content NOTE: this control attaches a sub view on top of the IGraphics view, so it will render all content on-top The platform native webviews run in a separate process and communicate via IPC.

On Windows the ICoreWebView2 is used, which requires Edge Chromium to be installed: https://docs.microsoft.com/en-us/microsoft-edge/webview2 On macOS and iOS WkWebView is used

Definition in file IWebViewControl.h.