diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-12-04 07:12:13 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-12-04 07:12:13 +0000 |
| commit | 4f01802c8cd0e0efc26896cf80e69dd9b6c06ec1 (patch) | |
| tree | 3cd7dab1ceebcd22cae80c579e844e225ec84206 /otk/rect.hh | |
| parent | 23a7f188297ba3cef1bf13f1be9407ff6eb9bd62 (diff) | |
actions class can sorta handle mouse enter/leave and press/release events
Diffstat (limited to 'otk/rect.hh')
| -rw-r--r-- | otk/rect.hh | 8 |
1 files changed, 8 insertions, 0 deletions
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 |
