aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/tree
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-08-26 10:49:49 -0400
committerLibravatar GitHub <noreply@github.com>2018-08-26 10:49:49 -0400
commitdf7083a2d0842a3985747770774075a8f5ecdaef (patch)
tree2aad57ba7f7eec9fdb51b98859f6da826a4d39a1 /include/sway/tree
parentMerge pull request #2488 from RyanDwyer/separate-gaps-functions (diff)
parentRemove layout.c (diff)
downloadsway-df7083a2d0842a3985747770774075a8f5ecdaef.tar.gz
sway-df7083a2d0842a3985747770774075a8f5ecdaef.tar.zst
sway-df7083a2d0842a3985747770774075a8f5ecdaef.zip
Merge pull request #2515 from RyanDwyer/remove-layout-file
Remove layout.c
Diffstat (limited to 'include/sway/tree')
-rw-r--r--include/sway/tree/container.h28
-rw-r--r--include/sway/tree/layout.h52
2 files changed, 28 insertions, 52 deletions
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h
index 2b6e6e0c..e4071cfe 100644
--- a/include/sway/tree/container.h
+++ b/include/sway/tree/container.h
@@ -53,6 +53,9 @@ struct sway_output;
53struct sway_workspace; 53struct sway_workspace;
54struct sway_view; 54struct sway_view;
55 55
56enum movement_direction;
57enum wlr_direction;
58
56struct sway_container_state { 59struct sway_container_state {
57 // Container/swayc properties 60 // Container/swayc properties
58 enum sway_container_layout layout; 61 enum sway_container_layout layout;
@@ -341,4 +344,29 @@ void container_add_gaps(struct sway_container *container);
341 344
342int container_sibling_index(const struct sway_container *child); 345int container_sibling_index(const struct sway_container *child);
343 346
347void container_handle_fullscreen_reparent(struct sway_container *con,
348 struct sway_container *old_parent);
349
350void container_add_child(struct sway_container *parent,
351 struct sway_container *child);
352
353void container_insert_child(struct sway_container *parent,
354 struct sway_container *child, int i);
355
356struct sway_container *container_add_sibling(struct sway_container *parent,
357 struct sway_container *child);
358
359struct sway_container *container_remove_child(struct sway_container *child);
360
361struct sway_container *container_replace_child(struct sway_container *child,
362 struct sway_container *new_child);
363
364bool sway_dir_to_wlr(enum movement_direction dir, enum wlr_direction *out);
365
366enum sway_container_layout container_get_default_layout(
367 struct sway_container *con);
368
369struct sway_container *container_split(struct sway_container *child,
370 enum sway_container_layout layout);
371
344#endif 372#endif
diff --git a/include/sway/tree/layout.h b/include/sway/tree/layout.h
deleted file mode 100644
index 5c834ad2..00000000
--- a/include/sway/tree/layout.h
+++ /dev/null
@@ -1,52 +0,0 @@
1#ifndef _SWAY_LAYOUT_H
2#define _SWAY_LAYOUT_H
3#include <wlr/types/wlr_output_layout.h>
4#include <wlr/render/wlr_texture.h>
5#include "sway/tree/container.h"
6#include "sway/tree/root.h"
7#include "config.h"
8
9enum movement_direction {
10 MOVE_LEFT,
11 MOVE_RIGHT,
12 MOVE_UP,
13 MOVE_DOWN,
14 MOVE_PARENT,
15 MOVE_CHILD,
16};
17
18enum wlr_edges;
19
20struct sway_container;
21
22void container_handle_fullscreen_reparent(struct sway_container *con,
23 struct sway_container *old_parent);
24
25void container_add_child(struct sway_container *parent,
26 struct sway_container *child);
27
28void container_insert_child(struct sway_container *parent,
29 struct sway_container *child, int i);
30
31struct sway_container *container_add_sibling(struct sway_container *parent,
32 struct sway_container *child);
33
34struct sway_container *container_remove_child(struct sway_container *child);
35
36struct sway_container *container_replace_child(struct sway_container *child,
37 struct sway_container *new_child);
38
39bool sway_dir_to_wlr(enum movement_direction dir, enum wlr_direction *out);
40
41enum sway_container_layout container_get_default_layout(
42 struct sway_container *con);
43
44struct sway_container *container_split(struct sway_container *child,
45 enum sway_container_layout layout);
46
47void container_recursive_resize(struct sway_container *container,
48 double amount, enum wlr_edges edge);
49
50void container_swap(struct sway_container *con1, struct sway_container *con2);
51
52#endif