| 56 | } |
| 57 | |
| 58 | bool Rect::IsOutOfBounds(int max_width, int max_height) const { |
| 59 | if (width <= 0 || height <= 0) return true; |
| 60 | if (x >= max_width || y >= max_height) return true; |
| 61 | if (x + width <= 0 || y + height <= 0) return true; |
| 62 | return false; |
| 63 | } |
| 64 | |
| 65 | bool Rect::IsOutOfBounds(const Rect &src_rect) const { |
| 66 | if (width <= 0 || height <= 0) return true; |
no outgoing calls
no test coverage detected