aboutsummaryrefslogtreecommitdiff
path: root/src/events/WinCreatedEvent.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/events/WinCreatedEvent.hpp')
-rw-r--r--src/events/WinCreatedEvent.hpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/events/WinCreatedEvent.hpp b/src/events/WinCreatedEvent.hpp
new file mode 100644
index 0000000..b2d1bba
--- /dev/null
+++ b/src/events/WinCreatedEvent.hpp
@@ -0,0 +1,19 @@
+#pragma once
+
+#include <QtCore>
+#include <lua.hpp>
+
+#include "events/Event.hpp"
+#include "widgets/BrowserWindow.hpp"
+
+class WinCreatedEvent : public Event {
+public:
+ const WindowId win_id;
+
+ WinCreatedEvent(WindowId win_id) : win_id(win_id) { kind = "WinCreated"; }
+
+ void lua_push(lua_State *state) const override {
+ Event::lua_push(state);
+ SET_FIELD("win_id", integer, win_id)
+ }
+};