iPlug2 - C++ Audio Plug-in Framework
Loading...
Searching...
No Matches
Classes | Typedefs
IWebViewControl.h File Reference
#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 *pControl)>
 
using OnMessageFunc = std::function< void(IWebViewControl *pControl, 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.

Typedef Documentation

◆ OnMessageFunc

using OnMessageFunc = std::function<void(IWebViewControl* pControl, const char* jsonMsg)>

Definition at line 28 of file IWebViewControl.h.

◆ OnReadyFunc

using OnReadyFunc = std::function<void(IWebViewControl* pControl)>

Definition at line 27 of file IWebViewControl.h.