From 2e590026e9ea0d556bb9f6b06ca21dfb9244aec8 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 20 Aug 2021 12:41:23 +0200 Subject: scene: add wlr_scene_subsurface_tree_create --- include/wlr/types/wlr_scene.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/wlr') diff --git a/include/wlr/types/wlr_scene.h b/include/wlr/types/wlr_scene.h index 7187359b..965782bf 100644 --- a/include/wlr/types/wlr_scene.h +++ b/include/wlr/types/wlr_scene.h @@ -224,4 +224,11 @@ bool wlr_scene_output_commit(struct wlr_scene_output *scene_output); bool wlr_scene_attach_output_layout(struct wlr_scene *scene, struct wlr_output_layout *output_layout); +/** + * Add a node displaying a surface and all of its sub-surfaces to the + * scene-graph. + */ +struct wlr_scene_node *wlr_scene_subsurface_tree_create( + struct wlr_scene_node *parent, struct wlr_surface *surface); + #endif -- cgit v1.2.3