diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/container.h | 11 | ||||
-rw-r--r-- | include/input_state.h | 1 | ||||
-rw-r--r-- | include/stringop.h | 1 |
3 files changed, 13 insertions, 0 deletions
diff --git a/include/container.h b/include/container.h index d3026011..3598067c 100644 --- a/include/container.h +++ b/include/container.h | |||
@@ -55,6 +55,7 @@ struct sway_container { | |||
55 | struct sway_container *focused; | 55 | struct sway_container *focused; |
56 | }; | 56 | }; |
57 | 57 | ||
58 | // Container Creation | ||
58 | 59 | ||
59 | swayc_t *new_output(wlc_handle handle); | 60 | swayc_t *new_output(wlc_handle handle); |
60 | swayc_t *new_workspace(swayc_t *output, const char *name); | 61 | swayc_t *new_workspace(swayc_t *output, const char *name); |
@@ -65,13 +66,23 @@ swayc_t *new_view(swayc_t *sibling, wlc_handle handle); | |||
65 | // Creates view as a new floating view which is in the active workspace | 66 | // Creates view as a new floating view which is in the active workspace |
66 | swayc_t *new_floating_view(wlc_handle handle); | 67 | swayc_t *new_floating_view(wlc_handle handle); |
67 | 68 | ||
69 | // Container Destroying | ||
68 | 70 | ||
69 | swayc_t *destroy_output(swayc_t *output); | 71 | swayc_t *destroy_output(swayc_t *output); |
70 | // Destroys workspace if empty and returns parent pointer, else returns NULL | 72 | // Destroys workspace if empty and returns parent pointer, else returns NULL |
71 | swayc_t *destroy_workspace(swayc_t *workspace); | 73 | swayc_t *destroy_workspace(swayc_t *workspace); |
74 | // Destroyes container and all parent container if they are empty, returns | ||
75 | // topmost non-empty parent. returns NULL otherwise | ||
72 | swayc_t *destroy_container(swayc_t *container); | 76 | swayc_t *destroy_container(swayc_t *container); |
77 | // Destroys view and all empty parent containers. return topmost non-empty | ||
78 | // parent | ||
73 | swayc_t *destroy_view(swayc_t *view); | 79 | swayc_t *destroy_view(swayc_t *view); |
74 | 80 | ||
81 | // Container Lookup | ||
82 | |||
83 | swayc_t *swayc_parent_by_type(swayc_t *container, enum swayc_types); | ||
84 | swayc_t *swayc_parent_by_layout(swayc_t *container, enum swayc_layouts); | ||
85 | |||
75 | swayc_t *find_container(swayc_t *container, bool (*test)(swayc_t *view, void *data), void *data); | 86 | swayc_t *find_container(swayc_t *container, bool (*test)(swayc_t *view, void *data), void *data); |
76 | void container_map(swayc_t *, void (*f)(swayc_t *, void *), void *); | 87 | void container_map(swayc_t *, void (*f)(swayc_t *, void *), void *); |
77 | 88 | ||
diff --git a/include/input_state.h b/include/input_state.h index 7119c68b..27dd6cff 100644 --- a/include/input_state.h +++ b/include/input_state.h | |||
@@ -48,6 +48,7 @@ extern struct pointer_state { | |||
48 | 48 | ||
49 | void start_floating(swayc_t *view); | 49 | void start_floating(swayc_t *view); |
50 | void reset_floating(swayc_t *view); | 50 | void reset_floating(swayc_t *view); |
51 | void input_init(void); | ||
51 | 52 | ||
52 | #endif | 53 | #endif |
53 | 54 | ||
diff --git a/include/stringop.h b/include/stringop.h index a5346829..4300f9ed 100644 --- a/include/stringop.h +++ b/include/stringop.h | |||
@@ -10,5 +10,6 @@ char *code_strchr(const char *string, char delimiter); | |||
10 | char *code_strstr(const char *haystack, const char *needle); | 10 | char *code_strstr(const char *haystack, const char *needle); |
11 | int unescape_string(char *string); | 11 | int unescape_string(char *string); |
12 | char *join_args(char **argv, int argc); | 12 | char *join_args(char **argv, int argc); |
13 | char *join_list(list_t *list, char *separator); | ||
13 | 14 | ||
14 | #endif | 15 | #endif |