mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-25 15:20:31 -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
|
@ -57,4 +57,9 @@ Rect& Rect::operator+=(const Rect& p) {
|
|||
return *this;
|
||||
}
|
||||
|
||||
Rect& Rect::operator+=(const Point& p) {
|
||||
pos += p;
|
||||
return *this;
|
||||
}
|
||||
|
||||
} /* namespace ui */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue