aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/tree/container.h
diff options
context:
space:
mode:
authorLibravatar Tony Crisci <tony@dubstepdish.com>2018-04-03 17:06:57 -0400
committerLibravatar Tony Crisci <tony@dubstepdish.com>2018-04-03 17:06:57 -0400
commiteca4468c2cacd87677f7f5831d8a74f8d811d318 (patch)
tree2f6c71b5fae5ace9070870b185d2c055787bc80d /include/sway/tree/container.h
parentrename workspace_get_initial_output (diff)
downloadsway-eca4468c2cacd87677f7f5831d8a74f8d811d318.tar.gz
sway-eca4468c2cacd87677f7f5831d8a74f8d811d318.tar.zst
sway-eca4468c2cacd87677f7f5831d8a74f8d811d318.zip
fix old todos
Diffstat (limited to 'include/sway/tree/container.h')
-rw-r--r--include/sway/tree/container.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h
index 23014dbe..f36b4bd1 100644
--- a/include/sway/tree/container.h
+++ b/include/sway/tree/container.h
@@ -91,12 +91,10 @@ struct sway_container {
91 } events; 91 } events;
92}; 92};
93 93
94// TODO make private and use the container-specific create functions
95struct sway_container *container_create(enum sway_container_type type); 94struct sway_container *container_create(enum sway_container_type type);
96 95
97const char *container_type_to_str(enum sway_container_type type); 96const char *container_type_to_str(enum sway_container_type type);
98 97
99// TODO only one container create function and pass the type?
100struct sway_container *container_output_create( 98struct sway_container *container_output_create(
101 struct sway_output *sway_output); 99 struct sway_output *sway_output);
102 100
@@ -123,16 +121,13 @@ struct sway_container *container_workspace_create(struct sway_container *output,
123 * or a container container and are rendered in the order and structure of 121 * or a container container and are rendered in the order and structure of
124 * how they are attached to the tree. 122 * how they are attached to the tree.
125 */ 123 */
126// TODO view containers should be created in a detached state.
127struct sway_container *container_view_create( 124struct sway_container *container_view_create(
128 struct sway_container *sibling, struct sway_view *sway_view); 125 struct sway_container *sibling, struct sway_view *sway_view);
129 126
130// TODO don't return the parent on destroy
131struct sway_container *container_destroy(struct sway_container *container); 127struct sway_container *container_destroy(struct sway_container *container);
132 128
133struct sway_container *container_close(struct sway_container *container); 129struct sway_container *container_close(struct sway_container *container);
134 130
135// TODO rename to container_descendants_for_each()
136void container_descendants(struct sway_container *root, 131void container_descendants(struct sway_container *root,
137 enum sway_container_type type, 132 enum sway_container_type type,
138 void (*func)(struct sway_container *item, void *data), void *data); 133 void (*func)(struct sway_container *item, void *data), void *data);
@@ -147,7 +142,6 @@ struct sway_container *container_find(struct sway_container *container,
147/** 142/**
148 * Finds a parent container with the given struct sway_containerype. 143 * Finds a parent container with the given struct sway_containerype.
149 */ 144 */
150// TODO rename to container_parent_of_type()
151struct sway_container *container_parent(struct sway_container *container, 145struct sway_container *container_parent(struct sway_container *container,
152 enum sway_container_type type); 146 enum sway_container_type type);
153 147