From c8a5dfcc878b855253d7b5fa2691c850c8430ff7 Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Sat, 12 Nov 2022 19:31:55 -0500 Subject: wlr_scene: Add drag icon helper --- include/wlr/types/wlr_scene.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') diff --git a/include/wlr/types/wlr_scene.h b/include/wlr/types/wlr_scene.h index 47dd26da..e45a3ee0 100644 --- a/include/wlr/types/wlr_scene.h +++ b/include/wlr/types/wlr_scene.h @@ -28,6 +28,7 @@ struct wlr_output; struct wlr_output_layout; struct wlr_xdg_surface; struct wlr_layer_surface_v1; +struct wlr_drag_icon; struct wlr_scene_node; struct wlr_scene_buffer; @@ -472,4 +473,11 @@ void wlr_scene_layer_surface_v1_configure( struct wlr_scene_layer_surface_v1 *scene_layer_surface, const struct wlr_box *full_area, struct wlr_box *usable_area); +/** + * Add a node displaying a drag icon and all its sub-surfaces to the + * scene-graph. + */ +struct wlr_scene_tree *wlr_scene_drag_icon_create( + struct wlr_scene_tree *parent, struct wlr_drag_icon *drag_icon); + #endif -- cgit v1.2.3