diff options
author | Mathias Agopian <mathias@google.com> | 2009-05-27 15:02:35 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2009-05-27 15:02:35 -0700 |
commit | 4b8160fdfd3281d1d66c0cae9bb9c647b4333491 (patch) | |
tree | 13d03a1b1839acdd42c514cbd37223e88f580d35 /include | |
parent | 723ec00af46d1f95d69fe5af53e0a5d09f01a7d6 (diff) | |
download | frameworks_native-4b8160fdfd3281d1d66c0cae9bb9c647b4333491.zip frameworks_native-4b8160fdfd3281d1d66c0cae9bb9c647b4333491.tar.gz frameworks_native-4b8160fdfd3281d1d66c0cae9bb9c647b4333491.tar.bz2 |
oops forgot these changes in the previous merge. fixes build
Diffstat (limited to 'include')
-rw-r--r-- | include/ui/Rect.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/ui/Rect.h b/include/ui/Rect.h index da72944..a213c09 100644 --- a/include/ui/Rect.h +++ b/include/ui/Rect.h @@ -30,6 +30,8 @@ public: int right; int bottom; + typedef int value_type; + // we don't provide copy-ctor and operator= on purpose // because we want the compiler generated versions @@ -46,7 +48,11 @@ public: } void makeInvalid(); - + + inline void clear() { + left = top = right = bottom = 0; + } + // a valid rectangle has a non negative width and height inline bool isValid() const { return (width()>=0) && (height()>=0); |