summaryrefslogtreecommitdiffstats
path: root/include/ui
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-06-29 18:46:37 -0700
committerMathias Agopian <mathias@google.com>2009-06-29 18:46:37 -0700
commit276826bae2eb6d25c4abb1c5f665d2876c65e50c (patch)
treed4784e3c21f41a2017d1a2c39d7873eca493cdf2 /include/ui
parent5fc1b60e7f8b19d7d7a2244c0e1e005c7ed91659 (diff)
downloadframeworks_base-276826bae2eb6d25c4abb1c5f665d2876c65e50c.zip
frameworks_base-276826bae2eb6d25c4abb1c5f665d2876c65e50c.tar.gz
frameworks_base-276826bae2eb6d25c4abb1c5f665d2876c65e50c.tar.bz2
Region::makeBoundsSelf() efficiently turns a region to its bounds
Diffstat (limited to 'include/ui')
-rw-r--r--include/ui/Region.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ui/Region.h b/include/ui/Region.h
index df455a9..2bcad5b 100644
--- a/include/ui/Region.h
+++ b/include/ui/Region.h
@@ -51,6 +51,9 @@ public:
inline Rect getBounds() const { return mBounds; }
inline Rect bounds() const { return getBounds(); }
+ // the region becomes its bounds
+ Region& makeBoundsSelf();
+
void clear();
void set(const Rect& r);
void set(uint32_t w, uint32_t h);