diff options
Diffstat (limited to 'include/sway/output.h')
-rw-r--r-- | include/sway/output.h | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/include/sway/output.h b/include/sway/output.h index 2a222238..ffc6708d 100644 --- a/include/sway/output.h +++ b/include/sway/output.h | |||
@@ -3,34 +3,14 @@ | |||
3 | #include <time.h> | 3 | #include <time.h> |
4 | #include <wayland-server.h> | 4 | #include <wayland-server.h> |
5 | #include <wlr/types/wlr_output.h> | 5 | #include <wlr/types/wlr_output.h> |
6 | #include "container.h" | ||
7 | #include "focus.h" | ||
8 | 6 | ||
9 | struct sway_server; | 7 | struct sway_server; |
10 | 8 | ||
11 | struct sway_output { | 9 | struct sway_output { |
12 | struct wlr_output *wlr_output; | 10 | struct wlr_output *wlr_output; |
13 | struct wl_listener frame; | ||
14 | struct sway_server *server; | 11 | struct sway_server *server; |
15 | struct timespec last_frame; | 12 | struct timespec last_frame; |
13 | struct wl_listener frame; | ||
16 | }; | 14 | }; |
17 | 15 | ||
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 | 16 | #endif |