summaryrefslogtreecommitdiff
path: root/include/types/fx
diff options
context:
space:
mode:
authorErik Reider <[email protected]>2023-08-06 20:48:58 +0200
committerGitHub <[email protected]>2023-08-06 14:48:58 -0400
commitb929a2bbadf467864796ad4ec90882ce86cfebff (patch)
tree8229d63bfe8e1ba7908c5ca988c3bb774ea7990b /include/types/fx
parenta2b827ab71f51240a192fa20913f6e83d8528612 (diff)
feat: add box shadows (#16)
Diffstat (limited to 'include/types/fx')
-rw-r--r--include/types/fx/shadow_data.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/types/fx/shadow_data.h b/include/types/fx/shadow_data.h
new file mode 100644
index 0000000..804acfe
--- /dev/null
+++ b/include/types/fx/shadow_data.h
@@ -0,0 +1,17 @@
+#ifndef TYPES_DECORATION_DATA
+#define TYPES_DECORATION_DATA
+
+#include <stdbool.h>
+#include <wlr/util/addon.h>
+
+struct shadow_data {
+ bool enabled;
+ float *color;
+ float blur_sigma;
+};
+
+struct shadow_data shadow_data_get_default(void);
+
+bool scene_buffer_has_shadow(struct shadow_data *data);
+
+#endif