X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FGeometry.h;h=0ca914b5dae19a2b5056d09ce1ea30160c6ab580;hb=20d7381ffb3b7b918c0f6120cce8c0343a50ce83;hp=cbdf0fd1ffd820282ba2de0499cb42bc3e499f77;hpb=25cbe08cb6c46740b63f1259256433558bf38a5f;p=chaz%2Fopenbox diff --git a/src/Geometry.h b/src/Geometry.h index cbdf0fd1..0ca914b5 100644 --- a/src/Geometry.h +++ b/src/Geometry.h @@ -99,6 +99,18 @@ public: } bool Intersect(const Rect &r) const; + // returns a rect that is this rect increased in size by the passed in amount + Rect Inflate(const unsigned int i) const; + Rect Inflate(const unsigned int iw, const unsigned int ih) const; + Rect Inflate(const Size &i) const; + // returns a rect that is this rect decreased in size by the passed in amount + Rect Deflate(const unsigned int d) const; + Rect Deflate(const unsigned int dw, const unsigned int dh) const; + Rect Deflate(const Size &d) const; + // returns a rect that is moved the amount specified + Rect Translate(const int t) const; + Rect Translate(const int tx, const int ty) const; + Rect Translate(const Point &t) const; }; #endif // __geometry_h