aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexander Orzechowski <alex@ozal.ski>2023-11-13 01:25:52 -0500
committerIsaac Freund <mail@isaacfreund.com>2023-11-14 17:27:08 +0000
commit3d3cca9164106212a8c6e52125bb05c18ada70a7 (patch)
treee3967c100e7ef64317d4c01a3eb7998c38e54bc7 /include
parentd1ddd4ca3a1879b85d823f06b018aa19593a320a (diff)
wlr_scene: Introduce wlr_scene_subsurface_tree_set_clip
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_scene.h10
1 files changed, 10 insertions, 0 deletions
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
@@ -544,6 +544,16 @@ 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.
*