mirror of
https://github.com/0intro/wmii
synced 2024-11-25 23:30:24 +03:00
11 lines
272 B
C
11 lines
272 B
C
|
/* Copyright ©2006-2010 Kris Maglione <maglione.k at Gmail>
|
||
|
* See LICENSE file for license details.
|
||
|
*/
|
||
|
#include <stuff/geom.h>
|
||
|
|
||
|
bool
|
||
|
rect_haspoint_p(Point pt, Rectangle r) {
|
||
|
return (pt.x >= r.min.x) && (pt.x < r.max.x)
|
||
|
&& (pt.y >= r.min.y) && (pt.y < r.max.y);
|
||
|
}
|