From 3d3cca9164106212a8c6e52125bb05c18ada70a7 Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Mon, 13 Nov 2023 01:25:52 -0500 Subject: wlr_scene: Introduce wlr_scene_subsurface_tree_set_clip --- include/wlr/types/wlr_scene.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include') diff --git a/include/wlr/types/wlr_scene.h b/include/wlr/types/wlr_scene.h index 3a3d34c2..dc8d6fef 100644 --- a/include/wlr/types/wlr_scene.h +++ b/include/wlr/types/wlr_scene.h @@ -543,6 +543,16 @@ void wlr_scene_output_layout_add_output(struct wlr_scene_output_layout *sol, struct wlr_scene_tree *wlr_scene_subsurface_tree_create( struct wlr_scene_tree *parent, struct wlr_surface *surface); +/** + * Sets a cropping region for any subsurface trees that are children of this + * scene node. The clip coordinate space will be that of the root surface of + * the subsurface tree. + * + * A NULL or empty clip will disable clipping + */ +void wlr_scene_subsurface_tree_set_clip(struct wlr_scene_node *node, + struct wlr_box *clip); + /** * Add a node displaying an xdg_surface and all of its sub-surfaces to the * scene-graph. -- cgit v1.2.3