File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -393,6 +393,12 @@ namespace webui {
393393 void set_context (const std::string_view element, void * context) const {
394394 webui_set_context (webui_window, element.data (), context);
395395 }
396+
397+ // Gets Win32 window `HWND`. More reliable with WebView than web browser
398+ // window, as browser PIDs may change on launch.
399+ void * win32_get_hwnd () const {
400+ return webui_win32_get_hwnd (webui_window);
401+ }
396402 };
397403
398404 // ------ Namespace members `webui::xxx()` ------
@@ -494,6 +500,11 @@ namespace webui {
494500 return webui_interface_is_app_running ();
495501 }
496502
503+ // Copy raw data.
504+ inline void memcpy (void * dest, const void * src, size_t count) {
505+ webui_memcpy (dest, const_cast <void *>(src), count);
506+ }
507+
497508} // namespace webui
498509
499510#endif /* _WEBUI_HPP */
You can’t perform that action at this time.
0 commit comments