aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/old/output.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sway/old/output.h')
-rw-r--r--include/sway/old/output.h36
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
9struct sway_server;
10
11struct 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.
20swayc_t *output_by_name(const char* name, const struct wlc_point *abs_pos);
21swayc_t *swayc_opposite_output(enum movement_direction dir, const struct wlc_point *abs_pos);
22swayc_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.
25void 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.
29void get_absolute_center_position(swayc_t *container, struct wlc_point *point);
30
31// stable sort workspaces on this output
32void sort_workspaces(swayc_t *output);
33
34void output_get_scaled_size(wlc_handle handle, struct wlc_size *size);
35
36#endif