| 73 | } |
| 74 | |
| 75 | bool Control::isPointInsideControlBounds(int x, int y) const |
| 76 | { |
| 77 | const Vec2<int> &Size = |
| 78 | (SelectionSize.x == 0 || SelectionSize.y == 0) ? this->Size : SelectionSize; |
| 79 | |
| 80 | return x >= resolvedLocation.x && x < resolvedLocation.x + Size.x && y >= resolvedLocation.y && |
| 81 | y < resolvedLocation.y + Size.y; |
| 82 | } |
| 83 | |
| 84 | bool Control::isPointInsideControlBounds(Event *e, sp<Control> c) const |
| 85 | { |