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:
parent
952f334de7
commit
f61549ca5f
4 changed files with 27 additions and 40 deletions
|
@ -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() }; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue