Home
last modified time | relevance | path

Searched refs:touchableRect (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/foundation/window/window_manager/interfaces/kits/napi/window_runtime/window_napi/
H A Djs_window_utils.cpp641 const Rect& windowRect, Rect& touchableRect) in ParseAndCheckRect() argument
645 touchableRect.posX_ = data; in ParseAndCheckRect()
651 touchableRect.posY_ = data; in ParseAndCheckRect()
658 touchableRect.width_ = udata; in ParseAndCheckRect()
664 touchableRect.height_ = udata; in ParseAndCheckRect()
669 if ((touchableRect.posX_ < 0) || (touchableRect.posY_ < 0) || in ParseAndCheckRect()
670 (touchableRect.posX_ > static_cast<int32_t>(windowRect.width_)) || in ParseAndCheckRect()
671 (touchableRect.posY_ > static_cast<int32_t>(windowRect.height_)) || in ParseAndCheckRect()
672 (touchableRect.width_ > (windowRect.width_ - static_cast<uint32_t>(touchableRect.posX_))) || in ParseAndCheckRect()
673 … (touchableRect.height_ > (windowRect.height_ - static_cast<uint32_t>(touchableRect.posY_)))) { in ParseAndCheckRect()
H A Djs_window_utils.h303 … ParseAndCheckRect(napi_env env, napi_value jsObject, const Rect& windowRect, Rect& touchableRect);