2015-10-25 01:20:00 +02:00
|
|
|
#ifndef _SWAY_OUTPUT_H
|
|
|
|
#define _SWAY_OUTPUT_H
|
|
|
|
|
|
|
|
#include "container.h"
|
|
|
|
#include "focus.h"
|
|
|
|
|
2015-11-16 00:35:25 +01:00
|
|
|
// 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);
|
2017-01-14 01:06:10 +01:00
|
|
|
swayc_t *swayc_opposite_output(enum movement_direction dir, const struct wlc_point *abs_pos);
|
2015-11-16 00:35:25 +01:00
|
|
|
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);
|
2015-10-25 01:20:00 +02:00
|
|
|
|
2016-06-02 22:48:14 +02:00
|
|
|
// stable sort workspaces on this output
|
2016-05-28 00:37:56 +02:00
|
|
|
void sort_workspaces(swayc_t *output);
|
|
|
|
|
2016-07-18 22:21:45 +02:00
|
|
|
void output_get_scaled_size(wlc_handle handle, struct wlc_size *size);
|
|
|
|
|
2015-10-25 01:20:00 +02:00
|
|
|
#endif
|