From 9195b77e14a7793f622edf136cede522c8cbdb58 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 17 Aug 2021 13:20:32 +0200 Subject: scene: add wlr_scene_node_coords --- include/wlr/types/wlr_scene.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/wlr') diff --git a/include/wlr/types/wlr_scene.h b/include/wlr/types/wlr_scene.h index f2773c6b..cec54a0b 100644 --- a/include/wlr/types/wlr_scene.h +++ b/include/wlr/types/wlr_scene.h @@ -118,6 +118,12 @@ void wlr_scene_node_place_below(struct wlr_scene_node *node, */ void wlr_scene_node_reparent(struct wlr_scene_node *node, struct wlr_scene_node *new_parent); +/** + * Get the node's layout-local coordinates. + * + * True is returned if the node and all of its ancestors are enabled. + */ +bool wlr_scene_node_coords(struct wlr_scene_node *node, int *lx, int *ly); /** * Call `iterator` on each surface in the scene-graph, with the surface's * position in layout coordinates. The function is called from root to leaves -- cgit v1.2.3