aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2017-08-26 11:55:24 -0400
committerTony Crisci <tony@dubstepdish.com>2017-08-26 11:55:24 -0400
commitac503a47a71e2ab5d149a1bb9184d424609c7da7 (patch)
treefe6ef70a9d57e995061b7c0649f06c0efa16a4f6 /include/wlr
parentdc7e32552dd47f400aa2d7c1f8355b89376ae60e (diff)
intersect cursor and device regions
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_geometry.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_geometry.h b/include/wlr/types/wlr_geometry.h
index 3e218bed..7ac2f843 100644
--- a/include/wlr/types/wlr_geometry.h
+++ b/include/wlr/types/wlr_geometry.h
@@ -1,5 +1,6 @@
#ifndef _WLR_TYPES_GEOMETRY_H
#define _WLR_TYPES_GEOMETRY_H
+#include <stdbool.h>
struct wlr_geometry {
int x, y;
@@ -9,4 +10,9 @@ struct wlr_geometry {
void wlr_geometry_closest_boundary(struct wlr_geometry *geo, double x, double y,
int *dest_x, int *dest_y, double *distance);
+bool wlr_geometry_intersection(struct wlr_geometry *geo_a,
+ struct wlr_geometry *geo_b, struct wlr_geometry **dest);
+
+bool wlr_geometry_contains_point(struct wlr_geometry *geo, int x, int y);
+
#endif