diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-07-25 20:27:44 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-07-25 20:28:05 +0530 |
| commit | 81dcf7de91c1866d565f7aa9eb38f7fbd1cd7ad7 (patch) | |
| tree | aa24bcea93d19ce6298ad6aed499d324fac2ceae /src/events/WinCreatedEvent.hpp | |
| parent | 2c7d36b4aa53ffa638a7aa7046767f10e7a152bf (diff) | |
| download | null-browser-81dcf7de91c1866d565f7aa9eb38f7fbd1cd7ad7.tar.gz null-browser-81dcf7de91c1866d565f7aa9eb38f7fbd1cd7ad7.zip | |
Add decoration is_enabled api + allowed specifying win_id for enabled
Diffstat (limited to 'src/events/WinCreatedEvent.hpp')
| -rw-r--r-- | src/events/WinCreatedEvent.hpp | 19 |
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) + } +}; |
