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.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'otk/rect.cc') 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 && -- cgit v1.2.3