Lines Matching defs:targetRect
263 static bool IsPointInTargetRect(int32_t pointPosX, int32_t pointPosY, const Rect& targetRect)
265 if ((pointPosX > targetRect.posX_) &&
266 (pointPosX < (targetRect.posX_ + static_cast<int32_t>(targetRect.width_)) - 1) &&
267 (pointPosY > targetRect.posY_) &&
268 (pointPosY < (targetRect.posY_ + static_cast<int32_t>(targetRect.height_)) - 1)) {
274 static bool IsPointInTargetRectWithBound(int32_t pointPosX, int32_t pointPosY, const Rect& targetRect)
276 if ((pointPosX >= targetRect.posX_) &&
277 (pointPosX < (targetRect.posX_ + static_cast<int32_t>(targetRect.width_))) &&
278 (pointPosY >= targetRect.posY_) &&
279 (pointPosY < (targetRect.posY_ + static_cast<int32_t>(targetRect.height_)))) {