aboutsummaryrefslogtreecommitdiff
path: root/include/sway/output.h
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2016-09-01 08:18:37 -0400
committerDrew DeVault <sir@cmpwn.com>2016-09-01 08:18:37 -0400
commit416417a54c5875abcdc257b6ad10ff086c35eefc (patch)
tree00f20884a05d05e620a4a24bba8595557cd41405 /include/sway/output.h
parent729fdf7d9186ceba0f84b87edfd473642964227f (diff)
Reorganize includes
Diffstat (limited to 'include/sway/output.h')
-rw-r--r--include/sway/output.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/sway/output.h b/include/sway/output.h
new file mode 100644
index 00000000..e8afd5ed
--- /dev/null
+++ b/include/sway/output.h
@@ -0,0 +1,24 @@
+#ifndef _SWAY_OUTPUT_H
+#define _SWAY_OUTPUT_H
+
+#include "container.h"
+#include "focus.h"
+
+// Position is absolute coordinates on the edge where the adjacent output
+// should be searched for.
+swayc_t *output_by_name(const char* name, const struct wlc_point *abs_pos);
+swayc_t *swayc_adjacent_output(swayc_t *output, enum movement_direction dir, const struct wlc_point *abs_pos, bool pick_closest);
+
+// Place absolute coordinates for given container into given wlc_point.
+void get_absolute_position(swayc_t *container, struct wlc_point *point);
+
+// Place absolute coordinates for the center point of given container into
+// given wlc_point.
+void get_absolute_center_position(swayc_t *container, struct wlc_point *point);
+
+// stable sort workspaces on this output
+void sort_workspaces(swayc_t *output);
+
+void output_get_scaled_size(wlc_handle handle, struct wlc_size *size);
+
+#endif