summaryrefslogtreecommitdiff
path: root/otk/rect.cc
diff options
context:
space:
mode:
Diffstat (limited to 'otk/rect.cc')
-rw-r--r--otk/rect.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/otk/rect.cc b/otk/rect.cc
index 40d369e9..7ec5c2c4 100644
--- a/otk/rect.cc
+++ b/otk/rect.cc
@@ -136,6 +136,12 @@ bool Rect::contains(int x, int y) const
}
+bool Rect::contains(const Point &p) const
+{
+ return contains(p.x(), p.y());
+}
+
+
bool Rect::contains(const Rect& a) const
{
return a._x1 >= _x1 && a._x2 <= _x2 &&