diff options
Diffstat (limited to 'include/sway/tree/layout.h')
-rw-r--r-- | include/sway/tree/layout.h | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/include/sway/tree/layout.h b/include/sway/tree/layout.h index 8badb244..784dcc9b 100644 --- a/include/sway/tree/layout.h +++ b/include/sway/tree/layout.h | |||
@@ -29,42 +29,37 @@ struct sway_root { | |||
29 | 29 | ||
30 | void layout_init(void); | 30 | void layout_init(void); |
31 | 31 | ||
32 | // TODO move to tree.h | ||
33 | void container_add_child(struct sway_container *parent, | 32 | void container_add_child(struct sway_container *parent, |
34 | struct sway_container *child); | 33 | struct sway_container *child); |
35 | 34 | ||
36 | // TODO move to tree.h | ||
37 | struct sway_container *container_add_sibling(struct sway_container *parent, | 35 | struct sway_container *container_add_sibling(struct sway_container *parent, |
38 | struct sway_container *child); | 36 | struct sway_container *child); |
39 | 37 | ||
40 | // TODO move to tree.h | ||
41 | struct sway_container *container_remove_child(struct sway_container *child); | 38 | struct sway_container *container_remove_child(struct sway_container *child); |
42 | 39 | ||
43 | // TODO PRIVATE in tree.h | 40 | struct sway_container *container_replace_child(struct sway_container *child, |
44 | struct sway_container *container_reap_empty(struct sway_container *container); | 41 | struct sway_container *new_child); |
42 | |||
43 | struct sway_container *container_set_layout(struct sway_container *container, | ||
44 | enum sway_container_layout layout); | ||
45 | 45 | ||
46 | // TODO move to tree.h | ||
47 | void container_move_to(struct sway_container* container, | 46 | void container_move_to(struct sway_container* container, |
48 | struct sway_container* destination); | 47 | struct sway_container* destination); |
49 | 48 | ||
50 | void container_move(struct sway_container *container, | 49 | void container_move(struct sway_container *container, |
51 | enum movement_direction dir, int move_amt); | 50 | enum movement_direction dir, int move_amt); |
52 | 51 | ||
53 | // TODO move to output.c | ||
54 | enum sway_container_layout container_get_default_layout( | 52 | enum sway_container_layout container_get_default_layout( |
55 | struct sway_container *output); | 53 | struct sway_container *con); |
56 | 54 | ||
57 | // TODO move to output.c | ||
58 | void container_sort_workspaces(struct sway_container *output); | 55 | void container_sort_workspaces(struct sway_container *output); |
59 | 56 | ||
60 | void arrange_windows(struct sway_container *container, | 57 | void arrange_windows(struct sway_container *container, |
61 | double width, double height); | 58 | double width, double height); |
62 | 59 | ||
63 | // TODO move to container.h | ||
64 | struct sway_container *container_get_in_direction(struct sway_container | 60 | struct sway_container *container_get_in_direction(struct sway_container |
65 | *container, struct sway_seat *seat, enum movement_direction dir); | 61 | *container, struct sway_seat *seat, enum movement_direction dir); |
66 | 62 | ||
67 | // TODO move to tree.h | ||
68 | struct sway_container *container_split(struct sway_container *child, | 63 | struct sway_container *container_split(struct sway_container *child, |
69 | enum sway_container_layout layout); | 64 | enum sway_container_layout layout); |
70 | 65 | ||