diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-06-29 23:50:04 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-06-29 23:50:04 +0000 |
| commit | 351a06655bdd7d440780b5bc5b255081c888044b (patch) | |
| tree | cda6be7de0972b942cfbee9510c49180c6f055d2 /src/Util.cc | |
| parent | b0d81f77aa57a33f6c9e6428ffe89f7cc02258ed (diff) | |
Configureable button mappings!
Diffstat (limited to 'src/Util.cc')
| -rw-r--r-- | src/Util.cc | 6 |
1 files changed, 6 insertions, 0 deletions
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; |
