From 5617d2bd6044a27e154ef61caf45896e2131fb3a Mon Sep 17 00:00:00 2001 From: Armin Preiml Date: Sat, 25 Aug 2018 09:14:55 +0200 Subject: introduce wlr_output_layout_farthest_output Similar to wlr_output_layout_adjacent_output but will return the one that is the farthest away from the reference in given direction. --- include/wlr/types/wlr_output_layout.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/wlr') diff --git a/include/wlr/types/wlr_output_layout.h b/include/wlr/types/wlr_output_layout.h index 2ac12a6a..cc9d2328 100644 --- a/include/wlr/types/wlr_output_layout.h +++ b/include/wlr/types/wlr_output_layout.h @@ -126,5 +126,8 @@ enum wlr_direction { struct wlr_output *wlr_output_layout_adjacent_output( struct wlr_output_layout *layout, enum wlr_direction direction, struct wlr_output *reference, double ref_lx, double ref_ly); +struct wlr_output *wlr_output_layout_farthest_output( + struct wlr_output_layout *layout, enum wlr_direction direction, + struct wlr_output *reference, double ref_lx, double ref_ly); #endif -- cgit v1.2.3