X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Frect.cc;h=7ec5c2c4487378c36a8ac62d509902d13d8c0ea7;hb=70eb03ad50e1a71fd64c8cb1ebabbff311850553;hp=40d369e964863ccbde4b9024e005c3f63fb4990c;hpb=1d897f432e54400cb2a0e1499712782b336fd728;p=chaz%2Fopenbox 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 &&