diff options
Diffstat (limited to 'include/sway/output.h')
-rw-r--r-- | include/sway/output.h | 24 |
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 @@ | |||
1 | #ifndef _SWAY_OUTPUT_H | ||
2 | #define _SWAY_OUTPUT_H | ||
3 | |||
4 | #include "container.h" | ||
5 | #include "focus.h" | ||
6 | |||
7 | // Position is absolute coordinates on the edge where the adjacent output | ||
8 | // should be searched for. | ||
9 | swayc_t *output_by_name(const char* name, const struct wlc_point *abs_pos); | ||
10 | swayc_t *swayc_adjacent_output(swayc_t *output, enum movement_direction dir, const struct wlc_point *abs_pos, bool pick_closest); | ||
11 | |||
12 | // Place absolute coordinates for given container into given wlc_point. | ||
13 | void get_absolute_position(swayc_t *container, struct wlc_point *point); | ||
14 | |||
15 | // Place absolute coordinates for the center point of given container into | ||
16 | // given wlc_point. | ||
17 | void get_absolute_center_position(swayc_t *container, struct wlc_point *point); | ||
18 | |||
19 | // stable sort workspaces on this output | ||
20 | void sort_workspaces(swayc_t *output); | ||
21 | |||
22 | void output_get_scaled_size(wlc_handle handle, struct wlc_size *size); | ||
23 | |||
24 | #endif | ||