mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-24 06:59:45 -05:00
scene: add functions to place node on top/bottom
These are very common operations for compositors (including tinywl) to perform.
This commit is contained in:
parent
2a8d385386
commit
4fae8f7be3
2 changed files with 26 additions and 0 deletions
|
|
@ -139,6 +139,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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue