wlr_scene: Add drag icon helper

This commit is contained in:
Alexander Orzechowski 2022-11-12 19:31:55 -05:00
parent 9f793d3503
commit c8a5dfcc87
3 changed files with 102 additions and 0 deletions

View file

@ -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