aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorIsaac Freund <mail@isaacfreund.com>2021-10-13 16:11:54 +0200
committerSimon Ser <contact@emersion.fr>2021-10-14 21:10:03 +0200
commit4fae8f7be39f9a1dab2657858c2f347320ab3149 (patch)
tree854e5de32be4af9f6b22f9b0499fa583df4b8760 /include/wlr
parent2a8d3853867c42570ae094df1335d7dfe0a4c71d (diff)
scene: add functions to place node on top/bottom
These are very common operations for compositors (including tinywl) to perform.
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_scene.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_scene.h b/include/wlr/types/wlr_scene.h
index 8180183f..7a0801c0 100644
--- a/include/wlr/types/wlr_scene.h
+++ b/include/wlr/types/wlr_scene.h
@@ -140,6 +140,14 @@ 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 above all of its sibling nodes.
+ */
+void wlr_scene_node_raise_to_top(struct wlr_scene_node *node);
+/**
+ * Move the node below all of its sibling nodes.
+ */
+void wlr_scene_node_lower_to_bottom(struct wlr_scene_node *node);
+/**
* Move the node to another location in the tree.
*/
void wlr_scene_node_reparent(struct wlr_scene_node *node,