diff options
Diffstat (limited to 'include/sway/layout.h')
-rw-r--r-- | include/sway/layout.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/sway/layout.h b/include/sway/layout.h index 69a66674..e82c4442 100644 --- a/include/sway/layout.h +++ b/include/sway/layout.h | |||
@@ -4,6 +4,18 @@ | |||
4 | #include <wlr/types/wlr_output_layout.h> | 4 | #include <wlr/types/wlr_output_layout.h> |
5 | #include "sway/container.h" | 5 | #include "sway/container.h" |
6 | 6 | ||
7 | enum movement_direction { | ||
8 | MOVE_LEFT, | ||
9 | MOVE_RIGHT, | ||
10 | MOVE_UP, | ||
11 | MOVE_DOWN, | ||
12 | MOVE_PARENT, | ||
13 | MOVE_CHILD, | ||
14 | MOVE_NEXT, | ||
15 | MOVE_PREV, | ||
16 | MOVE_FIRST | ||
17 | }; | ||
18 | |||
7 | struct sway_container; | 19 | struct sway_container; |
8 | 20 | ||
9 | struct sway_root { | 21 | struct sway_root { |
@@ -25,5 +37,7 @@ struct sway_container *remove_child(struct sway_container *child); | |||
25 | enum swayc_layouts default_layout(struct sway_container *output); | 37 | enum swayc_layouts default_layout(struct sway_container *output); |
26 | void sort_workspaces(struct sway_container *output); | 38 | void sort_workspaces(struct sway_container *output); |
27 | void arrange_windows(struct sway_container *container, double width, double height); | 39 | void arrange_windows(struct sway_container *container, double width, double height); |
40 | swayc_t *get_swayc_in_direction(swayc_t *container, | ||
41 | struct sway_seat *seat, enum movement_direction dir); | ||
28 | 42 | ||
29 | #endif | 43 | #endif |