diff options
| author | 2009-05-27 15:02:35 -0700 | |
|---|---|---|
| committer | 2009-05-27 15:02:35 -0700 | |
| commit | 8fe8a18160571621d0ce24c74b9ff943f8ad4ca3 (patch) | |
| tree | 41c37daff2d46551c2105f08a2d39d3e17660a1e | |
| parent | 2da99bdaa1712f00525e6a84b58044332cb1baef (diff) | |
oops forgot these changes in the previous merge. fixes build
| -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 da7294476246..a213c0930967 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); |