Loading include/ui/Rect.h +7 −1 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -47,6 +49,10 @@ 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); Loading Loading
include/ui/Rect.h +7 −1 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -47,6 +49,10 @@ 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); Loading