diff --git a/radio/src/thirdparty/libopenui/src/libopenui_types.h b/radio/src/thirdparty/libopenui/src/libopenui_types.h index 683829f66..a643b2384 100644 --- a/radio/src/thirdparty/libopenui/src/libopenui_types.h +++ b/radio/src/thirdparty/libopenui/src/libopenui_types.h @@ -63,6 +63,11 @@ struct rect_t { return (x >= this->x && x < this->x + this->w && y >= this->y && y < this->y + this->h); } + + bool contains(const rect_t & other) const + { + return left() <= other.left() && right() >= other.right() && top() <= other.top() && bottom() >= other.bottom(); + } }; typedef uint32_t LcdFlags;