aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/tree/layout.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sway/tree/layout.h')
-rw-r--r--include/sway/tree/layout.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/include/sway/tree/layout.h b/include/sway/tree/layout.h
index 53f72ec4..fbc3d6af 100644
--- a/include/sway/tree/layout.h
+++ b/include/sway/tree/layout.h
@@ -11,9 +11,6 @@ enum movement_direction {
11 MOVE_DOWN, 11 MOVE_DOWN,
12 MOVE_PARENT, 12 MOVE_PARENT,
13 MOVE_CHILD, 13 MOVE_CHILD,
14 MOVE_NEXT,
15 MOVE_PREV,
16 MOVE_FIRST
17}; 14};
18 15
19struct sway_container; 16struct sway_container;
@@ -33,7 +30,8 @@ struct sway_root {
33void layout_init(void); 30void layout_init(void);
34 31
35// TODO move to tree.h 32// TODO move to tree.h
36void container_add_child(struct sway_container *parent, struct sway_container *child); 33void container_add_child(struct sway_container *parent,
34 struct sway_container *child);
37 35
38// TODO move to tree.h 36// TODO move to tree.h
39struct sway_container *container_add_sibling(struct sway_container *parent, 37struct sway_container *container_add_sibling(struct sway_container *parent,
@@ -49,8 +47,12 @@ struct sway_container *container_reap_empty(struct sway_container *container);
49void container_move_to(struct sway_container* container, 47void container_move_to(struct sway_container* container,
50 struct sway_container* destination); 48 struct sway_container* destination);
51 49
50void container_move(struct sway_container *container,
51 enum movement_direction dir, int move_amt);
52
52// TODO move to output.c 53// TODO move to output.c
53enum sway_container_layout container_get_default_layout(struct sway_container *output); 54enum sway_container_layout container_get_default_layout(
55 struct sway_container *output);
54 56
55// TODO move to output.c 57// TODO move to output.c
56void container_sort_workspaces(struct sway_container *output); 58void container_sort_workspaces(struct sway_container *output);