PrusaSlicer/src/slic3r/GUI/WebView.hpp
David Kocik 9f42394629 SPE-2512: Create Webview only when it is being shown
Destroy webview on tab close
2024-11-11 16:12:50 +01:00

20 lines
553 B
C++

#ifndef slic3r_GUI_WebView_hpp_
#define slic3r_GUI_WebView_hpp_
#include <vector>
#include <string>
class wxWebView;
class wxWindow;
class wxString;
namespace WebView
{
// When using WebView in Panel, it is benfitable to call create only when it is being shown. (lower CPU usage)
// But when using WebView in Dialog, call both.
wxWebView* webview_new();
void webview_create(wxWebView* webview, wxWindow *parent, const wxString& url, const std::vector<std::string>& message_handlers);
};
#endif // !slic3r_GUI_WebView_hpp_