diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-06-09 08:43:18 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-09 08:43:18 -0700 |
commit | d9fc381e0292519cccf2df6ea77a3356a2e621c7 (patch) | |
tree | 24e4ea6634a734ed303c7aaf611df682adbf746c /include | |
parent | Merge pull request #2123 from emersion/fix-disabled-outputs (diff) | |
parent | Implement gaps (PR #2047) (diff) | |
download | sway-d9fc381e0292519cccf2df6ea77a3356a2e621c7.tar.gz sway-d9fc381e0292519cccf2df6ea77a3356a2e621c7.tar.zst sway-d9fc381e0292519cccf2df6ea77a3356a2e621c7.zip |
Merge pull request #2047 from natesymer/master
Implement Gaps
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/tree/arrange.h | 6 | ||||
-rw-r--r-- | include/sway/tree/container.h | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/include/sway/tree/arrange.h b/include/sway/tree/arrange.h index ce95cfe9..a14bc5dc 100644 --- a/include/sway/tree/arrange.h +++ b/include/sway/tree/arrange.h | |||
@@ -3,6 +3,12 @@ | |||
3 | 3 | ||
4 | struct sway_container; | 4 | struct sway_container; |
5 | 5 | ||
6 | // Remove gaps around container | ||
7 | void remove_gaps(struct sway_container *c); | ||
8 | |||
9 | // Add gaps around container | ||
10 | void add_gaps(struct sway_container *c); | ||
11 | |||
6 | // Determine the root container's geometry, then iterate to everything below | 12 | // Determine the root container's geometry, then iterate to everything below |
7 | void arrange_root(void); | 13 | void arrange_root(void); |
8 | 14 | ||
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h index 7ed6aab1..b3406bbe 100644 --- a/include/sway/tree/container.h +++ b/include/sway/tree/container.h | |||
@@ -86,6 +86,13 @@ struct sway_container { | |||
86 | double saved_x, saved_y; | 86 | double saved_x, saved_y; |
87 | double saved_width, saved_height; | 87 | double saved_width, saved_height; |
88 | 88 | ||
89 | // The gaps currently applied to the container. | ||
90 | double current_gaps; | ||
91 | |||
92 | bool has_gaps; | ||
93 | double gaps_inner; | ||
94 | double gaps_outer; | ||
95 | |||
89 | list_t *children; | 96 | list_t *children; |
90 | 97 | ||
91 | struct sway_container *parent; | 98 | struct sway_container *parent; |