aboutsummaryrefslogtreecommitdiff
path: root/include/sway/tree/container.h
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2018-03-29 21:19:57 -0400
committerTony Crisci <tony@dubstepdish.com>2018-03-29 21:22:39 -0400
commit4c394a0e9ee04b46ed349f7b3ddf67c53719b3b6 (patch)
tree0833690f34940296a9cbd6b3dd4ba682d0713370 /include/sway/tree/container.h
parent4ec8bf4ceead0b78407c92bf90a42b95740123f9 (diff)
address feedback
Diffstat (limited to 'include/sway/tree/container.h')
-rw-r--r--include/sway/tree/container.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h
index 3548afc1..92ff2b67 100644
--- a/include/sway/tree/container.h
+++ b/include/sway/tree/container.h
@@ -70,10 +70,10 @@ struct sway_container {
enum sway_container_layout prev_layout;
enum sway_container_layout workspace_layout;
- // TODO convert to layout coordinates
+ // TODO convert to layout coordinates
double x, y;
- // does not include borders or gaps.
+ // does not include borders or gaps.
double width, height;
list_t *children;
@@ -122,22 +122,16 @@ struct sway_container *container_parent(struct sway_container *container,
enum sway_container_type type);
/**
- * Run a function for each child.
- */
-void sway_container_for_each(struct sway_container *container,
- void (*f)(struct sway_container *view, void *data), void *data);
-
-/**
* Find a container at the given coordinates.
*/
-struct sway_container *sway_container_at(struct sway_container *parent,
+struct sway_container *container_at(struct sway_container *parent,
double lx, double ly, struct wlr_surface **surface,
double *sx, double *sy);
/**
* Apply the function for each child of the container breadth first.
*/
-void sway_container_for_each_bfs(struct sway_container *container,
+void container_for_each(struct sway_container *container,
void (*f)(struct sway_container *container, void *data), void *data);
#endif