diff options
author | Alexander Orzechowski <alex@ozal.ski> | 2023-05-27 04:20:25 -0400 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-05-30 15:43:29 +0000 |
commit | 95062904c7acc38d2175744ceda399c5b5a12adf (patch) | |
tree | 2f8a7fd91747c46982dd1dfd0801bbb7dd644668 /include | |
parent | 2346b90a9f47c506ff4ce9568b6689ea4011030f (diff) |
wlr_scene: Introduce wlr_scene_buffer_set_opacity
Diffstat (limited to 'include')
-rw-r--r-- | include/wlr/types/wlr_scene.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_scene.h b/include/wlr/types/wlr_scene.h index 4e1dd17a..87cf4fc9 100644 --- a/include/wlr/types/wlr_scene.h +++ b/include/wlr/types/wlr_scene.h @@ -166,6 +166,7 @@ struct wlr_scene_buffer { // private state + float opacity; uint64_t active_outputs; struct wlr_texture *texture; struct wlr_fbox src_box; @@ -416,6 +417,12 @@ void wlr_scene_buffer_set_transform(struct wlr_scene_buffer *scene_buffer, enum wl_output_transform transform); /** +* Sets the opacity of this buffer +*/ +void wlr_scene_buffer_set_opacity(struct wlr_scene_buffer *scene_buffer, + float opacity); + +/** * Calls the buffer's frame_done signal. */ void wlr_scene_buffer_send_frame_done(struct wlr_scene_buffer *scene_buffer, |