wlr_scene: Introduce wlr_scene_subsurface_tree_set_clip

This commit is contained in:
Alexander Orzechowski 2023-11-13 01:25:52 -05:00 committed by Isaac Freund
parent d1ddd4ca3a
commit 3d3cca9164
2 changed files with 115 additions and 0 deletions

View file

@ -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.