mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
wlr_scene: Introduce wlr_scene_subsurface_tree_set_clip
This commit is contained in:
parent
d1ddd4ca3a
commit
3d3cca9164
2 changed files with 115 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue