From 4f01802c8cd0e0efc26896cf80e69dd9b6c06ec1 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 4 Dec 2002 07:12:13 +0000 Subject: actions class can sorta handle mouse enter/leave and press/release events --- otk/rect.hh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'otk/rect.hh') 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 -- cgit v1.2.3