mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-14 07:27:49 +00:00
Hide ui::Point implementation.
This commit is contained in:
@@ -26,8 +26,8 @@
|
||||
namespace ui {
|
||||
|
||||
bool Rect::contains(const Point p) const {
|
||||
return (p.x >= left()) && (p.y >= top()) &&
|
||||
(p.x < right()) && (p.y < bottom());
|
||||
return (p.x() >= left()) && (p.y() >= top()) &&
|
||||
(p.x() < right()) && (p.y() < bottom());
|
||||
}
|
||||
|
||||
Rect Rect::intersect(const Rect& o) const {
|
||||
@@ -64,4 +64,9 @@ Rect& Rect::operator+=(const Point& p) {
|
||||
return *this;
|
||||
}
|
||||
|
||||
Rect& Rect::operator-=(const Point& p) {
|
||||
pos -= p;
|
||||
return *this;
|
||||
}
|
||||
|
||||
} /* namespace ui */
|
||||
|
Reference in New Issue
Block a user