aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorDevin J. Pohly <djpohly@gmail.com>2021-08-13 15:18:29 -0500
committerSimon Ser <contact@emersion.fr>2021-09-02 19:05:02 +0200
commit526652a554e941f4c86f3be5affe953ded84dacd (patch)
tree49a5c24a715a6b62820c31bf58619c2de5017bfc /include/wlr
parentb0972a94c38dd7996b083e8d665e64645337fb73 (diff)
scene: iterate nodes instead of surfaces when rendering
This will allow us to create node types which are rendered but not surface-based, such as a solid color or image.
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_scene.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_scene.h b/include/wlr/types/wlr_scene.h
index a489d6af..6e0aebf8 100644
--- a/include/wlr/types/wlr_scene.h
+++ b/include/wlr/types/wlr_scene.h
@@ -67,6 +67,9 @@ struct wlr_scene_surface {
struct wl_listener surface_destroy;
};
+typedef void (*wlr_scene_node_iterator_func_t)(struct wlr_scene_node *node,
+ int sx, int sy, void *data);
+
/**
* Immediately destroy the scene-graph node.
*/