diff options
author | Alexander Orzechowski <alex@ozal.ski> | 2023-05-27 04:20:07 -0400 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-05-30 15:40:41 +0000 |
commit | 2346b90a9f47c506ff4ce9568b6689ea4011030f (patch) | |
tree | 41ddaf8d766e0def85e61df7c552e56a830b5ac4 /include | |
parent | 88f80c4a7caacc0263fad27173a2abd56b482c51 (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/wlr/types/wlr_scene.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_scene.h b/include/wlr/types/wlr_scene.h index aa371d13..4e1dd17a 100644 --- a/include/wlr/types/wlr_scene.h +++ b/include/wlr/types/wlr_scene.h @@ -330,6 +330,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. */ |