[UI] Loop thread to main thread WindowedAppContext

This commit is contained in:
Triang3l
2021-08-28 19:38:24 +03:00
parent f540c188bf
commit 6ce5330f5f
95 changed files with 2343 additions and 1235 deletions

View File

@@ -28,7 +28,7 @@ class GTKWindow : public Window {
using super = Window;
public:
GTKWindow(Loop* loop, const std::string& title);
GTKWindow(WindowedAppContext& app_context, const std::string& title);
~GTKWindow() override;
NativePlatformHandle native_platform_handle() const override {
@@ -74,7 +74,6 @@ class GTKWindow : public Window {
void OnResize(UIEvent* e) override;
private:
void Create();
GtkWidget* window_;
GtkWidget* box_;
GtkWidget* drawing_area_;