commit | 9f96145725ff3f265712d607d19078fb91a5c8ec | [log] [tgz] |
---|---|---|
author | Mathias Agopian <mathias@google.com> | Mon Jun 29 18:46:37 2009 -0700 |
committer | Mathias Agopian <mathias@google.com> | Mon Jun 29 18:46:37 2009 -0700 |
tree | 353412441f6f9e59e3cafcf29a2189d510b19d9a | |
parent | 446ff920387052887bc905cc0cc439a7e3c38b83 [diff] |
Region::makeBoundsSelf() efficiently turns a region to its bounds
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 @@ 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);