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/LuaRuntime.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 '')
| -rw-r--r-- | src/LuaRuntime.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/LuaRuntime.hpp b/src/LuaRuntime.hpp index 58362af..0f46eab 100644 --- a/src/LuaRuntime.hpp +++ b/src/LuaRuntime.hpp @@ -3,10 +3,12 @@ #include <QtCore> #include <functional> #include <lua.hpp> +#include <optional> #include "AsyncEventLoop.hpp" #include "lua.h" #include "utils.hpp" +#include "widgets/BrowserWindow.hpp" #include "widgets/Decorations.hpp" #include "widgets/WebViewStack.hpp" @@ -60,7 +62,7 @@ signals: void webview_scroll_requested(WebViewId webview_id, int deltax, int deltay); void webview_scroll_top_requested(WebViewId webview_id); void webview_scroll_bottom_requested(WebViewId webview_id); - void decoration_set_enabled(DecorationType type, bool enabled); + void decoration_set_enabled(DecorationType type, bool enabled, std::optional<WindowId> win_id); protected: LuaRuntime(); |
