DSPark 1.6.1
Header-only audio DSP framework in pure C++20 — zero dependencies
Loading...
Searching...
No Matches
dspark::plugin::webview_ui Namespace Reference

Classes

class  Editor
 One embedded WebView editor instance for plugin class P. Owned by the format backends (the VST3 IPlugView object, the CLAP gui extension); plugin authors never touch this class - they only provide editorHtml() and friends. More...
 
struct  HostCallbacks
 How the editor reaches back into the format wrapper. Plain function pointers + context (no std::function, no virtuals): the wrapper translates to its format's gesture/automation calls and to the user's setParameter. All calls arrive on the host's main/UI thread, in PLAIN parameter values. More...
 
struct  PostArgs
 One decoded bridge message: [op, id?, value?]. More...
 

Functions

void debugLog (const char *format,...) noexcept
 
void appendJsonString (std::string &out, const char *s)
 Appends a JSON string literal (quotes included, control chars escaped).
 
void appendJsonNumber (std::string &out, double v)
 Appends a JSON number, immune to the process locale.
 
const char * parseJsonNumber (const char *s, double &out) noexcept
 Locale-independent number parse; returns the end pointer or nullptr.
 
bool parsePostArgs (const char *s, PostArgs &out) noexcept
 Parses the bridge's JSON array of scalars (op + optional id/number).
 

Variables

constexpr const char * kBridgeJs
 

Function Documentation

◆ appendJsonNumber()

void dspark::plugin::webview_ui::appendJsonNumber ( std::string &  out,
double  v 
)
inline

Appends a JSON number, immune to the process locale.

Definition at line 208 of file DSParkWebViewEditor.h.

◆ appendJsonString()

void dspark::plugin::webview_ui::appendJsonString ( std::string &  out,
const char *  s 
)
inline

Appends a JSON string literal (quotes included, control chars escaped).

Definition at line 179 of file DSParkWebViewEditor.h.

◆ debugLog()

void dspark::plugin::webview_ui::debugLog ( const char *  format,
  ... 
)
inlinenoexcept

Definition at line 132 of file DSParkWebViewEditor.h.

◆ parseJsonNumber()

const char * dspark::plugin::webview_ui::parseJsonNumber ( const char *  s,
double &  out 
)
inlinenoexcept

Locale-independent number parse; returns the end pointer or nullptr.

Definition at line 223 of file DSParkWebViewEditor.h.

◆ parsePostArgs()

bool dspark::plugin::webview_ui::parsePostArgs ( const char *  s,
PostArgs out 
)
inlinenoexcept

Parses the bridge's JSON array of scalars (op + optional id/number).

Definition at line 287 of file DSParkWebViewEditor.h.

Variable Documentation

◆ kBridgeJs

constexpr const char* dspark::plugin::webview_ui::kBridgeJs
inlineconstexpr

Definition at line 384 of file DSParkWebViewEditor.h.