diff options
Diffstat (limited to 'include/sway/old/output.h')
-rw-r--r-- | include/sway/old/output.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/include/sway/old/output.h b/include/sway/old/output.h new file mode 100644 index 00000000..2a222238 --- /dev/null +++ b/include/sway/old/output.h | |||
@@ -0,0 +1,36 @@ | |||
1 | #ifndef _SWAY_OUTPUT_H | ||
2 | #define _SWAY_OUTPUT_H | ||
3 | #include <time.h> | ||
4 | #include <wayland-server.h> | ||
5 | #include <wlr/types/wlr_output.h> | ||
6 | #include "container.h" | ||
7 | #include "focus.h" | ||
8 | |||
9 | struct sway_server; | ||
10 | |||
11 | struct sway_output { | ||
12 | struct wlr_output *wlr_output; | ||
13 | struct wl_listener frame; | ||
14 | struct sway_server *server; | ||
15 | struct timespec last_frame; | ||
16 | }; | ||
17 | |||
18 | // Position is absolute coordinates on the edge where the adjacent output | ||
19 | // should be searched for. | ||
20 | swayc_t *output_by_name(const char* name, const struct wlc_point *abs_pos); | ||
21 | swayc_t *swayc_opposite_output(enum movement_direction dir, const struct wlc_point *abs_pos); | ||
22 | swayc_t *swayc_adjacent_output(swayc_t *output, enum movement_direction dir, const struct wlc_point *abs_pos, bool pick_closest); | ||
23 | |||
24 | // Place absolute coordinates for given container into given wlc_point. | ||
25 | void get_absolute_position(swayc_t *container, struct wlc_point *point); | ||
26 | |||
27 | // Place absolute coordinates for the center point of given container into | ||
28 | // given wlc_point. | ||
29 | void get_absolute_center_position(swayc_t *container, struct wlc_point *point); | ||
30 | |||
31 | // stable sort workspaces on this output | ||
32 | void sort_workspaces(swayc_t *output); | ||
33 | |||
34 | void output_get_scaled_size(wlc_handle handle, struct wlc_size *size); | ||
35 | |||
36 | #endif | ||