summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2015-08-21 07:24:17 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2015-08-21 07:24:17 -0400
commita436fc17ffe3b8c7a98e8b0f4ae7ec765635d4aa (patch)
tree100d217f50e6116fbc7823fcb474b1060fde06e6 /include
parentFix compiler warnings (which were really errors) (diff)
parentFixed style errors (diff)
downloadsway-a436fc17ffe3b8c7a98e8b0f4ae7ec765635d4aa.tar.gz
sway-a436fc17ffe3b8c7a98e8b0f4ae7ec765635d4aa.tar.zst
sway-a436fc17ffe3b8c7a98e8b0f4ae7ec765635d4aa.zip
Merge pull request #105 from Half-Shot/master
Basic 'move' functionality.
Diffstat (limited to 'include')
-rw-r--r--include/container.h2
-rw-r--r--include/layout.h3
2 files changed, 5 insertions, 0 deletions
diff --git a/include/container.h b/include/container.h
index 3598067c..4e21461c 100644
--- a/include/container.h
+++ b/include/container.h
@@ -15,6 +15,7 @@ enum swayc_types{
15 C_TYPES, 15 C_TYPES,
16}; 16};
17 17
18
18enum swayc_layouts{ 19enum swayc_layouts{
19 L_NONE, 20 L_NONE,
20 L_HORIZ, 21 L_HORIZ,
@@ -86,6 +87,7 @@ swayc_t *swayc_parent_by_layout(swayc_t *container, enum swayc_layouts);
86swayc_t *find_container(swayc_t *container, bool (*test)(swayc_t *view, void *data), void *data); 87swayc_t *find_container(swayc_t *container, bool (*test)(swayc_t *view, void *data), void *data);
87void container_map(swayc_t *, void (*f)(swayc_t *, void *), void *); 88void container_map(swayc_t *, void (*f)(swayc_t *, void *), void *);
88 89
90
89// Mappings 91// Mappings
90void set_view_visibility(swayc_t *view, void *data); 92void set_view_visibility(swayc_t *view, void *data);
91void reset_gaps(swayc_t *view, void *data); 93void reset_gaps(swayc_t *view, void *data);
diff --git a/include/layout.h b/include/layout.h
index 20044b95..55bb6709 100644
--- a/include/layout.h
+++ b/include/layout.h
@@ -17,6 +17,9 @@ swayc_t *add_sibling(swayc_t *sibling, swayc_t *child);
17swayc_t *replace_child(swayc_t *child, swayc_t *new_child); 17swayc_t *replace_child(swayc_t *child, swayc_t *new_child);
18swayc_t *remove_child(swayc_t *child); 18swayc_t *remove_child(swayc_t *child);
19 19
20void move_container(swayc_t* container,swayc_t* root,enum movement_direction direction);
21
22
20// Layout 23// Layout
21void arrange_windows(swayc_t *container, double width, double height); 24void arrange_windows(swayc_t *container, double width, double height);
22 25