diff options
author | Alexander Orzechowski <alex@ozal.ski> | 2022-11-12 19:31:55 -0500 |
---|---|---|
committer | Alexander Orzechowski <alex@ozal.ski> | 2022-11-14 15:44:43 +0000 |
commit | c8a5dfcc878b855253d7b5fa2691c850c8430ff7 (patch) | |
tree | 382f020ea673ec55ac9e11ea22cdb226d601b207 /include/wlr | |
parent | 9f793d350379872aeee56ea5c476adfeedc8bc88 (diff) |
wlr_scene: Add drag icon helper
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_scene.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 |