summaryrefslogtreecommitdiffstats
path: root/include/sway/container.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sway/container.h')
-rw-r--r--include/sway/container.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/sway/container.h b/include/sway/container.h
index 0c66932d..f200a1a2 100644
--- a/include/sway/container.h
+++ b/include/sway/container.h
@@ -106,10 +106,6 @@ struct sway_container {
106 * The parent of this container. NULL for the root container. 106 * The parent of this container. NULL for the root container.
107 */ 107 */
108 struct sway_container *parent; 108 struct sway_container *parent;
109 /**
110 * Which of this container's children has focus.
111 */
112 struct sway_container *focused;
113 109
114 /** 110 /**
115 * Number of master views in auto layouts. 111 * Number of master views in auto layouts.
@@ -162,4 +158,12 @@ void container_map(swayc_t *container,
162swayc_t *swayc_at(swayc_t *parent, double lx, double ly, 158swayc_t *swayc_at(swayc_t *parent, double lx, double ly,
163 struct wlr_surface **surface, double *sx, double *sy); 159 struct wlr_surface **surface, double *sx, double *sy);
164 160
161/**
162 * Apply the function for each child of the container breadth first.
163 */
164void container_for_each_bfs(swayc_t *con, void (*f)(swayc_t *con, void *data),
165 void *data);
166
167swayc_t *swayc_change_layout(swayc_t *container, enum swayc_layouts layout);
168
165#endif 169#endif