X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Frect.hh;h=23ca0d12913632bee9ca989d7d5164b642c85a57;hb=70eb03ad50e1a71fd64c8cb1ebabbff311850553;hp=90d2b3cc8694a038f73160483c2736d919f28784;hpb=18645bf9c7450469f8a726d007871a536c571a0e;p=chaz%2Fopenbox diff --git a/otk/rect.hh b/otk/rect.hh index 90d2b3cc..23ca0d12 100644 --- a/otk/rect.hh +++ b/otk/rect.hh @@ -6,6 +6,7 @@ extern "C" { #include } +#include "point.hh" #include namespace otk { @@ -212,6 +213,14 @@ public: @return true if the point is contained within this Rect; otherwise, false */ bool contains(int x, int y) const; + //! Determines if this Rect contains a point + /*! + The rectangle contains the point if it falls within the rectangle's + boundaries. + @param p The point to operate on + @return true if the point is contained within this Rect; otherwise, false + */ + bool contains(const Point &p) const; //! Determines if this Rect contains another Rect entirely /*! This rectangle contains the second rectangle if it is entirely within this