MCPcopy Create free account
hub / github.com/DISTRHO/DPF / WebViewOptions

Class WebViewOptions

distrho/extra/WebViewImpl.hpp:37–76  ·  view source on GitHub ↗

Web view options, for customizing web view details. */

Source from the content-addressed store, hash-verified

35 Web view options, for customizing web view details.
36*/
37struct WebViewOptions {
38 /**
39 Position offset, for cases of mixing regular widgets with web views.
40 */
41 struct PositionOffset {
42 /** Horizontal offset, with scale factor pre-applied */
43 int x;
44
45 /** Vertical offset, with scale factor pre-applied */
46 int y;
47
48 /** Constructor for default values */
49 PositionOffset() : x(0), y(0) {}
50 } offset;
51
52 /**
53 Set some JavaScript to evalute on every new page load.
54 */
55 const char* initialJS;
56
57 /**
58 Message callback triggered from JavaScript code inside the WebView.
59 */
60 WebViewMessageCallback callback;
61 void* callbackPtr;
62
63 /** Constructor for default values */
64 WebViewOptions()
65 : offset(),
66 initialJS(nullptr),
67 callback(nullptr),
68 callbackPtr(nullptr) {}
69
70 /** Constructor providing a callback */
71 WebViewOptions(const WebViewMessageCallback cb, void* const ptr)
72 : offset(),
73 initialJS(nullptr),
74 callback(cb),
75 callbackPtr(ptr) {}
76};
77
78// --------------------------------------------------------------------------------------------------------------------
79

Callers 2

getIgnoringKeyRepeatFunction · 0.85
WebViewImpl.hppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected