diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-04-04 21:32:31 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-04-05 00:03:20 -0400 |
commit | f77986338fc4186d003908012685c12d718ed647 (patch) | |
tree | f8b1ec4af069ab2123453d713251dcd7c51767d1 /include | |
parent | Merge pull request #1732 from emersion/view-children (diff) | |
download | sway-f77986338fc4186d003908012685c12d718ed647.tar.gz sway-f77986338fc4186d003908012685c12d718ed647.tar.zst sway-f77986338fc4186d003908012685c12d718ed647.zip |
Implement resize command
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/tree/layout.h | 10 |
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 { | |||
13 | MOVE_CHILD, | 13 | MOVE_CHILD, |
14 | }; | 14 | }; |
15 | 15 | ||
16 | enum resize_edge { | ||
17 | RESIZE_EDGE_LEFT, | ||
18 | RESIZE_EDGE_RIGHT, | ||
19 | RESIZE_EDGE_TOP, | ||
20 | RESIZE_EDGE_BOTTOM, | ||
21 | }; | ||
22 | |||
16 | struct sway_container; | 23 | struct sway_container; |
17 | 24 | ||
18 | struct sway_root { | 25 | struct sway_root { |
@@ -63,4 +70,7 @@ struct sway_container *container_get_in_direction(struct sway_container | |||
63 | struct sway_container *container_split(struct sway_container *child, | 70 | struct sway_container *container_split(struct sway_container *child, |
64 | enum sway_container_layout layout); | 71 | enum sway_container_layout layout); |
65 | 72 | ||
73 | void container_recursive_resize(struct sway_container *container, | ||
74 | double amount, enum resize_edge edge); | ||
75 | |||
66 | #endif | 76 | #endif |