From b929a2bbadf467864796ad4ec90882ce86cfebff Mon Sep 17 00:00:00 2001 From: Erik Reider <35975961+ErikReider@users.noreply.github.com> Date: Sun, 6 Aug 2023 20:48:58 +0200 Subject: feat: add box shadows (#16) --- include/wlr/types/wlr_scene.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/wlr') diff --git a/include/wlr/types/wlr_scene.h b/include/wlr/types/wlr_scene.h index 138e0e2..7b4c002 100644 --- a/include/wlr/types/wlr_scene.h +++ b/include/wlr/types/wlr_scene.h @@ -23,6 +23,7 @@ #include #include #include +#include "types/fx/shadow_data.h" struct wlr_output; struct wlr_output_layout; @@ -151,6 +152,7 @@ struct wlr_scene_buffer { float opacity; int corner_radius; + struct shadow_data shadow_data; uint64_t active_outputs; struct wlr_texture *texture; @@ -387,6 +389,12 @@ void wlr_scene_buffer_set_opacity(struct wlr_scene_buffer *scene_buffer, void wlr_scene_buffer_set_corner_radius(struct wlr_scene_buffer *scene_buffer, int radii); +/** +* Sets the shadow of this buffer +*/ +void wlr_scene_buffer_set_shadow_data(struct wlr_scene_buffer *scene_buffer, + struct shadow_data shadow_data); + /** * Calls the buffer's frame_done signal. */ -- cgit v1.2.3