X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=otk%2Frect.hh;h=23ca0d12913632bee9ca989d7d5164b642c85a57;hb=f9107b5c5a4cc03bf544854e8d6d1ba83f6cd979;hp=83c2b225b63ef2645a22a4bbe900a4c8369af934;hpb=1eef416eee7b4df16a5cb1b834595e0419b102d2;p=chaz%2Fopenbox diff --git a/otk/rect.hh b/otk/rect.hh index 83c2b225..23ca0d12 100644 --- a/otk/rect.hh +++ b/otk/rect.hh @@ -213,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