summaryrefslogtreecommitdiff
path: root/sway/layout.h
diff options
context:
space:
mode:
authorDrew DeVault <[email protected]>2015-08-08 18:17:08 -0400
committerDrew DeVault <[email protected]>2015-08-08 18:17:08 -0400
commit6066467dff2a1c55c124f618af8a5406bfc6fac9 (patch)
tree3206799ee54eb8acdb6afe5178869a53e441e660 /sway/layout.h
parent148f59f3a670a7008bc6c2bc07712fd58b1f6e69 (diff)
Tile some windows baby
Diffstat (limited to 'sway/layout.h')
-rw-r--r--sway/layout.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sway/layout.h b/sway/layout.h
index 94e78a93..801faf90 100644
--- a/sway/layout.h
+++ b/sway/layout.h
@@ -27,6 +27,10 @@ struct sway_container {
// Not including borders or margins
int width, height;
+ int x, y;
+
+ int weight;
+
char *name;
list_t *children;
@@ -40,11 +44,13 @@ typedef struct sway_container swayc_t;
extern swayc_t root_container;
void init_layout();
+void add_child(swayc_t *parent, swayc_t *child);
void add_output(wlc_handle output);
void destroy_output(wlc_handle output);
void destroy_view(swayc_t *view);
void add_view(wlc_handle view);
void focus_view(swayc_t *view);
+void arrange_windows(swayc_t *container, int width, int height);
swayc_t *get_swayc_for_handle(wlc_handle handle, swayc_t *parent);