aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-08-20 12:41:23 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2021-09-21 16:48:31 +0200
commit2e590026e9ea0d556bb9f6b06ca21dfb9244aec8 (patch)
treeaabcc9948eb7ed4b2e182634d7c40f38aa381ae6 /include/wlr
parent597ba2b932e8d35fc746cc0e5e6c31742d12d71f (diff)
scene: add wlr_scene_subsurface_tree_create
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_scene.h7
1 files changed, 7 insertions, 0 deletions
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