separator fix, fix draw outside map

This commit is contained in:
Henrique Santiago
2012-01-05 16:34:37 -02:00
parent 4620f71444
commit 1b83126ed5
20 changed files with 49 additions and 38 deletions

View File

@@ -159,6 +159,12 @@ public:
return true;
}
bool contains(const TRect<T> &r, bool insideOnly = false) const {
if(contains(r.topLeft(), insideOnly) && contains(r.bottomRight(), insideOnly))
return true;
return false;
}
bool intersects(const TRect<T> &r) const {
if(isNull() || r.isNull())
return false;