aboutsummaryrefslogtreecommitdiff
path: root/include/sway
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-04-04 21:32:31 -0400
committerDrew DeVault <sir@cmpwn.com>2018-04-05 00:03:20 -0400
commitf77986338fc4186d003908012685c12d718ed647 (patch)
treef8b1ec4af069ab2123453d713251dcd7c51767d1 /include/sway
parent21aedf15052df4e7f8ee72922fa0e214d690facc (diff)
Implement resize command
Diffstat (limited to 'include/sway')
-rw-r--r--include/sway/tree/layout.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/sway/tree/layout.h b/include/sway/tree/layout.h
index 784dcc9b..fc5ce21f 100644
--- a/include/sway/tree/layout.h
+++ b/include/sway/tree/layout.h
@@ -13,6 +13,13 @@ enum movement_direction {
MOVE_CHILD,
};
+enum resize_edge {
+ RESIZE_EDGE_LEFT,
+ RESIZE_EDGE_RIGHT,
+ RESIZE_EDGE_TOP,
+ RESIZE_EDGE_BOTTOM,
+};
+
struct sway_container;
struct sway_root {
@@ -63,4 +70,7 @@ struct sway_container *container_get_in_direction(struct sway_container
struct sway_container *container_split(struct sway_container *child,
enum sway_container_layout layout);
+void container_recursive_resize(struct sway_container *container,
+ double amount, enum resize_edge edge);
+
#endif