From 1c284a9431f98bbefd27a30c3368bbf7366dff3a Mon Sep 17 00:00:00 2001 From: Michael Wright Date: Mon, 10 Feb 2014 13:00:14 -0800 Subject: Add contains point method to Region Change-Id: I553433ff7ac39f14ffca8278960d2abc95b4dd63 --- include/ui/Region.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/ui') diff --git a/include/ui/Region.h b/include/ui/Region.h index d906dbb..0d1c68c 100644 --- a/include/ui/Region.h +++ b/include/ui/Region.h @@ -50,6 +50,9 @@ public: inline Rect getBounds() const { return mStorage[mStorage.size() - 1]; } inline Rect bounds() const { return getBounds(); } + bool contains(const Point& point) const; + bool contains(int x, int y) const; + // the region becomes its bounds Region& makeBoundsSelf(); -- cgit v1.1