diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/output.h | 2 | ||||
-rw-r--r-- | include/sway/tree/container.h | 2 | ||||
-rw-r--r-- | include/sway/tree/layout.h | 15 |
3 files changed, 11 insertions, 8 deletions
diff --git a/include/sway/output.h b/include/sway/output.h index 098540fb..651fdfe7 100644 --- a/include/sway/output.h +++ b/include/sway/output.h | |||
@@ -45,6 +45,8 @@ void output_destroy(struct sway_container *output); | |||
45 | 45 | ||
46 | void output_begin_destroy(struct sway_container *output); | 46 | void output_begin_destroy(struct sway_container *output); |
47 | 47 | ||
48 | struct sway_container *output_from_wlr_output(struct wlr_output *output); | ||
49 | |||
48 | typedef void (*sway_surface_iterator_func_t)(struct sway_output *output, | 50 | typedef void (*sway_surface_iterator_func_t)(struct sway_output *output, |
49 | struct wlr_surface *surface, struct wlr_box *box, float rotation, | 51 | struct wlr_surface *surface, struct wlr_box *box, float rotation, |
50 | void *user_data); | 52 | void *user_data); |
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h index 2cb23d3c..2cedb613 100644 --- a/include/sway/tree/container.h +++ b/include/sway/tree/container.h | |||
@@ -335,4 +335,6 @@ struct sway_output *container_get_effective_output(struct sway_container *con); | |||
335 | 335 | ||
336 | void container_discover_outputs(struct sway_container *con); | 336 | void container_discover_outputs(struct sway_container *con); |
337 | 337 | ||
338 | int container_sibling_index(const struct sway_container *child); | ||
339 | |||
338 | #endif | 340 | #endif |
diff --git a/include/sway/tree/layout.h b/include/sway/tree/layout.h index 519189d9..5c834ad2 100644 --- a/include/sway/tree/layout.h +++ b/include/sway/tree/layout.h | |||
@@ -19,9 +19,15 @@ enum wlr_edges; | |||
19 | 19 | ||
20 | struct sway_container; | 20 | struct sway_container; |
21 | 21 | ||
22 | void container_handle_fullscreen_reparent(struct sway_container *con, | ||
23 | struct sway_container *old_parent); | ||
24 | |||
22 | void container_add_child(struct sway_container *parent, | 25 | void container_add_child(struct sway_container *parent, |
23 | struct sway_container *child); | 26 | struct sway_container *child); |
24 | 27 | ||
28 | void container_insert_child(struct sway_container *parent, | ||
29 | struct sway_container *child, int i); | ||
30 | |||
25 | struct sway_container *container_add_sibling(struct sway_container *parent, | 31 | struct sway_container *container_add_sibling(struct sway_container *parent, |
26 | struct sway_container *child); | 32 | struct sway_container *child); |
27 | 33 | ||
@@ -30,18 +36,11 @@ struct sway_container *container_remove_child(struct sway_container *child); | |||
30 | struct sway_container *container_replace_child(struct sway_container *child, | 36 | struct sway_container *container_replace_child(struct sway_container *child, |
31 | struct sway_container *new_child); | 37 | struct sway_container *new_child); |
32 | 38 | ||
33 | void container_move_to(struct sway_container* container, | 39 | bool sway_dir_to_wlr(enum movement_direction dir, enum wlr_direction *out); |
34 | struct sway_container* destination); | ||
35 | |||
36 | void container_move(struct sway_container *container, | ||
37 | enum movement_direction dir, int move_amt); | ||
38 | 40 | ||
39 | enum sway_container_layout container_get_default_layout( | 41 | enum sway_container_layout container_get_default_layout( |
40 | struct sway_container *con); | 42 | struct sway_container *con); |
41 | 43 | ||
42 | struct sway_container *container_get_in_direction(struct sway_container | ||
43 | *container, struct sway_seat *seat, enum movement_direction dir); | ||
44 | |||
45 | struct sway_container *container_split(struct sway_container *child, | 44 | struct sway_container *container_split(struct sway_container *child, |
46 | enum sway_container_layout layout); | 45 | enum sway_container_layout layout); |
47 | 46 | ||