diff options
author | Erik Reider <[email protected]> | 2023-08-06 20:48:58 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2023-08-06 14:48:58 -0400 |
commit | b929a2bbadf467864796ad4ec90882ce86cfebff (patch) | |
tree | 8229d63bfe8e1ba7908c5ca988c3bb774ea7990b /include/wlr/types | |
parent | a2b827ab71f51240a192fa20913f6e83d8528612 (diff) |
feat: add box shadows (#16)
Diffstat (limited to 'include/wlr/types')
-rw-r--r-- | include/wlr/types/wlr_scene.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 <wayland-server-core.h> #include <wlr/types/wlr_compositor.h> #include <wlr/types/wlr_damage_ring.h> +#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; @@ -388,6 +390,12 @@ 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. */ void wlr_scene_buffer_send_frame_done(struct wlr_scene_buffer *scene_buffer, |