aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexander Orzechowski <orzechowski.alexander@gmail.com>2022-06-05 13:03:35 -0400
committerSimon Ser <contact@emersion.fr>2023-05-30 15:40:41 +0000
commit61c157269e1ac7ef5323a54609514f2d76e79afe (patch)
treec1e54849ff9a6c0e0e328a93a027db1285047161 /include
parente07c77f846f585cece77099ff3a71dd8f92e0eca (diff)
wlr_scene: Add documentation to wlr_scene_buffer_from_node
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_scene.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_scene.h b/include/wlr/types/wlr_scene.h
index b6f0d217..ca4641fa 100644
--- a/include/wlr/types/wlr_scene.h
+++ b/include/wlr/types/wlr_scene.h
@@ -317,6 +317,10 @@ struct wlr_scene_tree *wlr_scene_tree_create(struct wlr_scene_tree *parent);
struct wlr_scene_surface *wlr_scene_surface_create(struct wlr_scene_tree *parent,
struct wlr_surface *surface);
+/**
+ * If this node represents a wlr_scene_buffer, that buffer will be returned. It
+ * is not legal to feed a node that does not represent a wlr_scene_buffer.
+ */
struct wlr_scene_buffer *wlr_scene_buffer_from_node(struct wlr_scene_node *node);
/**