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