Nui
Public Member Functions | Public Attributes | List of all members
Nui::Window::WindowsImplementation Struct Reference
Inheritance diagram for Nui::Window::WindowsImplementation:
Inheritance graph
[legend]
Collaboration diagram for Nui::Window::WindowsImplementation:
Collaboration graph
[legend]

Public Member Functions

 WindowsImplementation ()
 
void registerSchemeHandlers (WindowOptions const &options) override
 
HRESULT onSchemeRequest (std::vector< CustomScheme > const &schemes, ICoreWebView2 *, ICoreWebView2WebResourceRequestedEventArgs *args)
 
CustomSchemeRequest makeCustomSchemeRequest (CustomScheme const &scheme, std::string const &uri, COREWEBVIEW2_WEB_RESOURCE_CONTEXT resourceContext, ICoreWebView2WebResourceRequest *webViewRequest)
 
Microsoft::WRL::ComPtr< ICoreWebView2WebResourceResponse > makeResponse (CustomSchemeResponse const &responseData, HRESULT &result)
 
- Public Member Functions inherited from Nui::Window::Implementation
 Implementation ()
 
virtual ~Implementation ()
 
void initialize (bool debug, void *options)
 
template<class Derived >
std::shared_ptr< Derived > shared_from_base ()
 
template<class Derived >
std::weak_ptr< Derived > weak_from_base ()
 
 Implementation ()
 

Public Attributes

DWORD windowThreadId
 
std::vector< std::function< void()> > toProcessOnWindowThread
 
EventRegistrationToken schemeHandlerToken
 
std::optional< EventRegistrationTokensetHtmlWorkaroundToken
 
- Public Attributes inherited from Nui::Window::Implementation
std::recursive_mutex viewGuard
 
boost::asio::thread_pool pool
 
std::unique_ptr< webview::webview > view
 
std::vector< std::filesystem::path > cleanupFiles
 
std::unordered_map< std::string, std::function< void(nlohmann::json const &)> > callbacks
 
int width
 
int height
 
std::function< void(std::string_view)> onRpcError
 

Constructor & Destructor Documentation

◆ WindowsImplementation()

Nui::Window::WindowsImplementation::WindowsImplementation ( )
inline

Member Function Documentation

◆ makeCustomSchemeRequest()

CustomSchemeRequest Nui::Window::WindowsImplementation::makeCustomSchemeRequest ( CustomScheme const &  scheme,
std::string const &  uri,
COREWEBVIEW2_WEB_RESOURCE_CONTEXT  resourceContext,
ICoreWebView2WebResourceRequest *  webViewRequest 
)

◆ makeResponse()

Microsoft::WRL::ComPtr< ICoreWebView2WebResourceResponse > Nui::Window::WindowsImplementation::makeResponse ( CustomSchemeResponse const &  responseData,
HRESULT &  result 
)

◆ onSchemeRequest()

HRESULT Nui::Window::WindowsImplementation::onSchemeRequest ( std::vector< CustomScheme > const &  schemes,
ICoreWebView2 *  ,
ICoreWebView2WebResourceRequestedEventArgs *  args 
)

◆ registerSchemeHandlers()

void Nui::Window::WindowsImplementation::registerSchemeHandlers ( WindowOptions const &  options)
overridevirtual

Member Data Documentation

◆ schemeHandlerToken

EventRegistrationToken Nui::Window::WindowsImplementation::schemeHandlerToken

◆ setHtmlWorkaroundToken

std::optional<EventRegistrationToken> Nui::Window::WindowsImplementation::setHtmlWorkaroundToken

◆ toProcessOnWindowThread

std::vector<std::function<void()> > Nui::Window::WindowsImplementation::toProcessOnWindowThread

◆ windowThreadId

DWORD Nui::Window::WindowsImplementation::windowThreadId

The documentation for this struct was generated from the following file: