mirror of
https://github.com/0intro/wmii
synced 2024-11-22 13:52:17 +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(Rectangle r, Point pt) {
|
|
return (pt.x >= r.min.x) && (pt.x < r.max.x)
|
|
&& (pt.y >= r.min.y) && (pt.y < r.max.y);
|
|
}
|