[windows] ON_MAIN_THEAD macro. Misc updates

This commit is contained in:
Lea Anthony
2021-04-27 21:08:53 +10:00
parent 385988989b
commit ee05884c9c
8 changed files with 107 additions and 90 deletions

View File

@@ -7,6 +7,13 @@
#include "ffenestri.h"
#include <windows.h>
#include <wingdi.h>
#include <functional>
#define ON_MAIN_THREAD(code) dispatch( [=]{ code; } )
typedef std::function<void()> dispatchFunction;
//typedef std::function<void(const std::string)> messageCallback;
//typedef std::function<void(ICoreWebView2Controller *)> comHandlerCallback;
void center(struct Application*);
void setTitle(struct Application* app, const char *title);