mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
intersect cursor and device regions
This commit is contained in:
parent
dc7e32552d
commit
ac503a47a7
3 changed files with 82 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue