From 351a06655bdd7d440780b5bc5b255081c888044b Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 29 Jun 2002 23:50:04 +0000 Subject: Configureable button mappings! --- src/Util.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/Util.cc') diff --git a/src/Util.cc b/src/Util.cc index bc685bfa..9dadb3e1 100644 --- a/src/Util.cc +++ b/src/Util.cc @@ -141,6 +141,12 @@ bool Rect::intersects(const Rect &a) const { } +bool Rect::contains(int __x, int __y) const { + return __x >= _x1 && __x <= _x2 && + __y >= _y1 && __y <= _y2; +} + + string expandTilde(const string& s) { if (s[0] != '~') return s; -- cgit v1.2.3