diff options
| author | 2014-02-10 13:00:14 -0800 | |
|---|---|---|
| committer | 2014-02-10 13:00:14 -0800 | |
| commit | 1c284a9431f98bbefd27a30c3368bbf7366dff3a (patch) | |
| tree | cc57db9d4963929f36eff25c5312675bd9762ceb /include/ui/Region.h | |
| parent | 835f5df6cc83471a909a2ebc0311fe29778a6b8f (diff) | |
Add contains point method to Region
Change-Id: I553433ff7ac39f14ffca8278960d2abc95b4dd63
Diffstat (limited to 'include/ui/Region.h')
| -rw-r--r-- | include/ui/Region.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ui/Region.h b/include/ui/Region.h index d906dbbb0d..0d1c68c951 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(); |