Enlightenment CVS committal Author : barbieri Project : e17 Module : proto/python-efl
Dir : e17/proto/python-efl/python-evas/evas Modified Files: evas.c_evas_rect.pxi Log Message: add Rect.contains_point(x, y) =================================================================== RCS file: /cvs/e/e17/proto/python-efl/python-evas/evas/evas.c_evas_rect.pxi,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- evas.c_evas_rect.pxi 28 Sep 2007 18:06:26 -0000 1.4 +++ evas.c_evas_rect.pxi 19 Oct 2007 14:49:42 -0000 1.5 @@ -430,6 +430,11 @@ "Checks if contains given rectangle." return obj in self + def contains_point(self, x, y): + "Checks if contains the given point." + return bool(self.x0 <= x <= self.x1 and \ + self.y0 <= y <= self.y1) + def intercepts(self, obj): "Checks if intercepts given rectangle." cdef Rect o ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs