1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 11:28:11 +00:00

Make better use of geometry class helpers in some places.

This commit is contained in:
Andreas Kling 2019-04-16 13:58:02 +02:00
parent 952f334de7
commit f61549ca5f
4 changed files with 27 additions and 40 deletions

View file

@ -195,6 +195,11 @@ public:
return r;
}
Rect intersected(const Rect& other) const
{
return intersection(*this, other);
}
Rect united(const Rect&) const;
Point top_left() const { return { left(), top() }; }