wlr_scene: Make scene_rect_from_node public

This is in an effort to be more consistent with both already public
getters: wlr_scene_buffer_from_node and wlr_scene_tree_from_node
This commit is contained in:
Alexander Orzechowski 2023-05-27 04:20:07 -04:00 committed by Simon Ser
parent 88f80c4a7c
commit 2346b90a9f
2 changed files with 12 additions and 7 deletions

View file

@ -329,6 +329,12 @@ struct wlr_scene_buffer *wlr_scene_buffer_from_node(struct wlr_scene_node *node)
*/
struct wlr_scene_tree *wlr_scene_tree_from_node(struct wlr_scene_node *node);
/**
* If this node represents a wlr_scene_rect, that rect will be returned. It
* is not legal to feed a node that does not represent a wlr_scene_rect.
*/
struct wlr_scene_rect *wlr_scene_rect_from_node(struct wlr_scene_node *node);
/**
* If this buffer is backed by a surface, then the struct wlr_scene_surface is
* returned. If not, NULL will be returned.