mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-14 09:25:30 -04:00
Rect: operator method to offset by a Point.
This commit is contained in:
parent
79330015ed
commit
f722497b01
2 changed files with 6 additions and 0 deletions
|
@ -208,6 +208,7 @@ struct Rect {
|
|||
}
|
||||
|
||||
Rect& operator+=(const Rect& p);
|
||||
Rect& operator+=(const Point& p);
|
||||
|
||||
operator bool() const {
|
||||
return !size.is_empty();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue