diff options
author | Devin J. Pohly <djpohly@gmail.com> | 2021-08-23 14:32:59 -0500 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-08-30 16:43:18 +0200 |
commit | a1d462fa81682d4820d13020769ba86286868b60 (patch) | |
tree | a9b9c083a943e6cf7fc0ec21c00abf69f964c5b2 /include/wlr | |
parent | b18c254e5f3f7ce0edb11cbb10f2e106c169f589 (diff) |
scene: add node reparent function
If nodes are arranged in a tree rather than at a single level, then it
makes sense that there should be a way to move them to a completely
different parent in addition to moving up or down among siblings.
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_scene.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_scene.h b/include/wlr/types/wlr_scene.h index 8a327262..a489d6af 100644 --- a/include/wlr/types/wlr_scene.h +++ b/include/wlr/types/wlr_scene.h @@ -91,6 +91,11 @@ void wlr_scene_node_place_above(struct wlr_scene_node *node, void wlr_scene_node_place_below(struct wlr_scene_node *node, struct wlr_scene_node *sibling); /** + * Move the node to another location in the tree. + */ +void wlr_scene_node_reparent(struct wlr_scene_node *node, + struct wlr_scene_node *new_parent); +/** * Call `iterator` on each surface in the scene-graph, with the surface's * position in layout coordinates. The function is called from root to leaves * (in rendering order). |