From 61c157269e1ac7ef5323a54609514f2d76e79afe Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Sun, 5 Jun 2022 13:03:35 -0400 Subject: wlr_scene: Add documentation to wlr_scene_buffer_from_node --- include/wlr/types/wlr_scene.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') 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); /** -- cgit v1.2.3