diff options
author | Mathias Agopian <mathias@google.com> | 2009-06-29 18:46:37 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2009-06-29 18:46:37 -0700 |
commit | 9f96145725ff3f265712d607d19078fb91a5c8ec (patch) | |
tree | 353412441f6f9e59e3cafcf29a2189d510b19d9a /include | |
parent | 446ff920387052887bc905cc0cc439a7e3c38b83 (diff) | |
download | frameworks_native-9f96145725ff3f265712d607d19078fb91a5c8ec.zip frameworks_native-9f96145725ff3f265712d607d19078fb91a5c8ec.tar.gz frameworks_native-9f96145725ff3f265712d607d19078fb91a5c8ec.tar.bz2 |
Region::makeBoundsSelf() efficiently turns a region to its bounds
Diffstat (limited to 'include')
-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 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); |