aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2017-08-17 10:12:36 -0400
committerDrew DeVault <sir@cmpwn.com>2017-08-17 21:05:13 -0400
commit5a9baf487e0161cfbf9481c31eb6f72be0ec2fbe (patch)
tree2b79e8a851c68531018447f62c021766f5ad5d96 /include
parent420bd3e4223d67c7bfe153be365caec342a18238 (diff)
add helper methods for intersection
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_output_layout.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_output_layout.h b/include/wlr/types/wlr_output_layout.h
index 7c904838..1b83bfaf 100644
--- a/include/wlr/types/wlr_output_layout.h
+++ b/include/wlr/types/wlr_output_layout.h
@@ -40,4 +40,10 @@ void wlr_output_layout_remove(struct wlr_output_layout *layout,
void wlr_output_layout_output_coords(struct wlr_output_layout *layout,
struct wlr_output *reference, int *x, int *y);
+bool wlr_output_layout_contains_point(struct wlr_output_layout *layout,
+ struct wlr_output *reference, int x, int y);
+
+bool wlr_output_layout_intersects(struct wlr_output_layout *layout,
+ struct wlr_output *reference, int x1, int y1, int x2, int y2);
+
#endif