diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/container.h | 13 | ||||
-rw-r--r-- | include/layout.h | 7 | ||||
-rw-r--r-- | include/workspace.h | 4 |
3 files changed, 12 insertions, 12 deletions
diff --git a/include/container.h b/include/container.h index 4e21461c..2ced248b 100644 --- a/include/container.h +++ b/include/container.h | |||
@@ -81,12 +81,21 @@ swayc_t *destroy_view(swayc_t *view); | |||
81 | 81 | ||
82 | // Container Lookup | 82 | // Container Lookup |
83 | 83 | ||
84 | swayc_t *swayc_by_test(swayc_t *container, bool (*test)(swayc_t *view, void *data), void *data); | ||
84 | swayc_t *swayc_parent_by_type(swayc_t *container, enum swayc_types); | 85 | swayc_t *swayc_parent_by_type(swayc_t *container, enum swayc_types); |
85 | swayc_t *swayc_parent_by_layout(swayc_t *container, enum swayc_layouts); | 86 | swayc_t *swayc_parent_by_layout(swayc_t *container, enum swayc_layouts); |
87 | swayc_t *swayc_by_handle(wlc_handle handle); | ||
88 | swayc_t *swayc_active_output(void); | ||
89 | swayc_t *swayc_active_workspace(void); | ||
90 | swayc_t *swayc_active_workspace_for(swayc_t *view); | ||
86 | 91 | ||
87 | swayc_t *find_container(swayc_t *container, bool (*test)(swayc_t *view, void *data), void *data); | 92 | // Container information |
88 | void container_map(swayc_t *, void (*f)(swayc_t *, void *), void *); | 93 | |
94 | bool swayc_is_fullscreen(swayc_t *view); | ||
89 | 95 | ||
96 | // Mapping functions | ||
97 | |||
98 | void container_map(swayc_t *, void (*f)(swayc_t *, void *), void *); | ||
90 | 99 | ||
91 | // Mappings | 100 | // Mappings |
92 | void set_view_visibility(swayc_t *view, void *data); | 101 | void set_view_visibility(swayc_t *view, void *data); |
diff --git a/include/layout.h b/include/layout.h index 55bb6709..7b8829ed 100644 --- a/include/layout.h +++ b/include/layout.h | |||
@@ -19,17 +19,10 @@ swayc_t *remove_child(swayc_t *child); | |||
19 | 19 | ||
20 | void move_container(swayc_t* container,swayc_t* root,enum movement_direction direction); | 20 | void move_container(swayc_t* container,swayc_t* root,enum movement_direction direction); |
21 | 21 | ||
22 | |||
23 | // Layout | 22 | // Layout |
24 | void arrange_windows(swayc_t *container, double width, double height); | 23 | void arrange_windows(swayc_t *container, double width, double height); |
25 | 24 | ||
26 | // Focus | ||
27 | void unfocus_all(swayc_t *container); | ||
28 | void focus_view(swayc_t *view); | ||
29 | void focus_view_for(swayc_t *ancestor, swayc_t *container); | ||
30 | |||
31 | swayc_t *get_focused_container(swayc_t *parent); | 25 | swayc_t *get_focused_container(swayc_t *parent); |
32 | swayc_t *get_swayc_for_handle(wlc_handle handle, swayc_t *parent); | ||
33 | swayc_t *get_swayc_in_direction(swayc_t *container, enum movement_direction dir); | 26 | swayc_t *get_swayc_in_direction(swayc_t *container, enum movement_direction dir); |
34 | 27 | ||
35 | void recursive_resize(swayc_t *container, double amount, enum wlc_resize_edge edge); | 28 | void recursive_resize(swayc_t *container, double amount, enum wlc_resize_edge edge); |
diff --git a/include/workspace.h b/include/workspace.h index 042a15d9..d447ac2d 100644 --- a/include/workspace.h +++ b/include/workspace.h | |||
@@ -5,11 +5,9 @@ | |||
5 | #include "list.h" | 5 | #include "list.h" |
6 | #include "layout.h" | 6 | #include "layout.h" |
7 | 7 | ||
8 | extern swayc_t *active_workspace; | ||
9 | |||
10 | char *workspace_next_name(void); | 8 | char *workspace_next_name(void); |
11 | swayc_t *workspace_create(const char*); | 9 | swayc_t *workspace_create(const char*); |
12 | swayc_t *workspace_find_by_name(const char*); | 10 | swayc_t *workspace_by_name(const char*); |
13 | void workspace_switch(swayc_t*); | 11 | void workspace_switch(swayc_t*); |
14 | void workspace_output_next(); | 12 | void workspace_output_next(); |
15 | void workspace_next(); | 13 | void workspace_next(); |