diff options
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_scene.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_scene.h b/include/wlr/types/wlr_scene.h index 95d86d83..df3d00e8 100644 --- a/include/wlr/types/wlr_scene.h +++ b/include/wlr/types/wlr_scene.h @@ -24,6 +24,7 @@ #include <wlr/types/wlr_surface.h> struct wlr_output; +struct wlr_output_layout; enum wlr_scene_node_type { WLR_SCENE_NODE_ROOT, @@ -203,4 +204,13 @@ void wlr_scene_output_set_position(struct wlr_scene_output *scene_output, */ bool wlr_scene_output_commit(struct wlr_scene_output *scene_output); +/** + * Attach an output layout to a scene. + * + * Outputs in the output layout are automatically added to the scene. Any + * change to the output layout is mirrored to the scene-graph outputs. + */ +bool wlr_scene_attach_output_layout(struct wlr_scene *scene, + struct wlr_output_layout *output_layout); + #endif |