summaryrefslogtreecommitdiffstats
path: root/include/sway/layout.h
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-03-30 00:00:23 -0400
committerLibravatar GitHub <noreply@github.com>2018-03-30 00:00:23 -0400
commit7162b9bea4d66d61376ad3605e23e2d83bb95201 (patch)
tree6f7a3121f15503a923c1ce53bf2bee368c6149a6 /include/sway/layout.h
parentMerge pull request #1653 from swaywm/revert-1647-refactor-tree (diff)
parentFix oversights from previous pull request (diff)
downloadsway-7162b9bea4d66d61376ad3605e23e2d83bb95201.tar.gz
sway-7162b9bea4d66d61376ad3605e23e2d83bb95201.tar.zst
sway-7162b9bea4d66d61376ad3605e23e2d83bb95201.zip
Merge pull request #1654 from acrisci/refactor-2-electric-boogaloo
Revert "Merge pull request #1653 from swaywm/revert-1647-refactor-tree"
Diffstat (limited to 'include/sway/layout.h')
-rw-r--r--include/sway/layout.h43
1 files changed, 0 insertions, 43 deletions
diff --git a/include/sway/layout.h b/include/sway/layout.h
deleted file mode 100644
index e82c4442..00000000
--- a/include/sway/layout.h
+++ /dev/null
@@ -1,43 +0,0 @@
1#ifndef _SWAY_LAYOUT_H
2#define _SWAY_LAYOUT_H
3
4#include <wlr/types/wlr_output_layout.h>
5#include "sway/container.h"
6
7enum movement_direction {
8 MOVE_LEFT,
9 MOVE_RIGHT,
10 MOVE_UP,
11 MOVE_DOWN,
12 MOVE_PARENT,
13 MOVE_CHILD,
14 MOVE_NEXT,
15 MOVE_PREV,
16 MOVE_FIRST
17};
18
19struct sway_container;
20
21struct sway_root {
22 struct wlr_output_layout *output_layout;
23
24 struct wl_listener output_layout_change;
25
26 struct wl_list unmanaged_views; // sway_view::unmanaged_view_link
27
28 struct {
29 struct wl_signal new_container;
30 } events;
31};
32
33void init_layout(void);
34void add_child(struct sway_container *parent, struct sway_container *child);
35swayc_t *add_sibling(swayc_t *parent, swayc_t *child);
36struct sway_container *remove_child(struct sway_container *child);
37enum swayc_layouts default_layout(struct sway_container *output);
38void sort_workspaces(struct sway_container *output);
39void arrange_windows(struct sway_container *container, double width, double height);
40swayc_t *get_swayc_in_direction(swayc_t *container,
41 struct sway_seat *seat, enum movement_direction dir);
42
43#endif