aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-09-02 12:47:28 +0200
committerKenny Levinsen <kl@kl.wtf>2021-09-09 12:04:35 +0200
commita181a37b12c804d658bb82eb542870a0ee54a63d (patch)
treeeda6a7410d6e83ae1467e3a8bed7b2fc0356a048 /include/wlr
parent7832005a1fefaebcbc6eff0ac6c14cef6fe6888c (diff)
scene: add wlr_scene_attach_output_layout
This is a helper to integrate wlr_scene with wlr_output_layout.
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_scene.h10
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