]> git.sur5r.net Git - i3/i3/blobdiff - include/con.h
Introduce splith/splitv layouts, remove orientation
[i3/i3] / include / con.h
index 95726147a74d56a053141c847fc0f5b3fb7d6843..1965da7cbfe2a1fa5700ebd613bb1f212adaa95c 100644 (file)
@@ -248,6 +248,15 @@ void con_set_border_style(Con *con, int border_style);
  */
 void con_set_layout(Con *con, int layout);
 
+/**
+ * This function toggles the layout of a given container. toggle_mode can be
+ * either 'default' (toggle only between stacked/tabbed/last_split_layout),
+ * 'split' (toggle only between splitv/splith) or 'all' (toggle between all
+ * layouts).
+ *
+ */
+void con_toggle_layout(Con *con, const char *toggle_mode);
+
 /**
  * Determines the minimum size of the given con by looking at its children (for
  * split/stacked/tabbed cons). Will be called when resizing floating cons