All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
WebBrowserCef::WebEngine Class Reference

#include <WebBrowserCef/WebEngine.hpp>

Public Member Functions

void contextInitialized ()
 
void deinitialize ()
 
void runInUiThread (std::function< void()> f)
 Schedules a function to be executed on the browser UI thread. More...
 
void setUseMainThread (bool useMainThread)
 

Static Public Member Functions

static QStringList defaultFlags ()
 
static void setDefaultFlags (const QStringList &args)
 

Detailed Description

Member Function Documentation

void WebBrowserCef::WebEngine::runInUiThread ( std::function< void()>  f)

Schedules a function to be executed on the browser UI thread.

Starts the engine and UI thread if it's not yet running. Function will be executed only after CEF context has been fully initialized.