wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

rect_haspoint_p.c (272B)


      1 /* Copyright ©2006-2010 Kris Maglione <maglione.k at Gmail>
      2  * See LICENSE file for license details.
      3  */
      4 #include <stuff/geom.h>
      5 
      6 bool
      7 rect_haspoint_p(Rectangle r, Point pt) {
      8 	return (pt.x >= r.min.x) && (pt.x < r.max.x)
      9 	    && (pt.y >= r.min.y) && (pt.y < r.max.y);
     10 }