From 2c7d36b4aa53ffa638a7aa7046767f10e7a152bf Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Fri, 25 Jul 2025 18:56:49 +0530 Subject: Expose decorations enable/disable lua api --- src/widgets/Decorations.hpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/widgets/Decorations.hpp') diff --git a/src/widgets/Decorations.hpp b/src/widgets/Decorations.hpp index e35e83c..d58ee7f 100644 --- a/src/widgets/Decorations.hpp +++ b/src/widgets/Decorations.hpp @@ -3,17 +3,29 @@ #include "widgets/EdgeDecoration.hpp" #include #include +#include #include +enum DecorationType : uint8_t { + DecorationTop = 1, + DecorationBottom = 2, + DecorationLeft = 3, + DecorationRight = 4, +}; + class Decorations : public QWidget { Q_OBJECT public: Decorations(QWidget *content_widget, QWebEngineProfile *profile, QWidget *parent = nullptr); + void set_enabled(DecorationType type, bool enabled); + private: EdgeDecoration *decoration_top; EdgeDecoration *decoration_bottom; EdgeDecoration *decoration_left; EdgeDecoration *decoration_right; + + std::optional get_decoration_widget(DecorationType type); }; -- cgit v1.3.1