/foundation/arkui/ace_engine/interfaces/napi/kits/componentutils/ |
H A D | js_component_utils.cpp | 51 napi_value windowOffset = nullptr; in JSGetRectangleById() local 102 napi_create_object(env, &windowOffset); in JSGetRectangleById() 113 napi_create_double(env, rectangle.windowOffset.GetX(), &windowOffsetX); in JSGetRectangleById() 114 napi_create_double(env, rectangle.windowOffset.GetY(), &windowOffsetY); in JSGetRectangleById() 115 napi_create_double(env, rectangle.windowOffset.GetX() + rectangle.screenRect.GetOffset().GetX(), &screenOffsetX); in JSGetRectangleById() 116 napi_create_double(env, rectangle.windowOffset.GetY() + rectangle.screenRect.GetOffset().GetY(), &screenOffsetY); in JSGetRectangleById() 172 napi_set_named_property(env, obj, "windowOffset", windowOffset); in JSGetRectangleById() 173 napi_set_named_property(env, windowOffset, "x", windowOffsetX); in JSGetRectangleById() 174 napi_set_named_property(env, windowOffset, " in JSGetRectangleById() [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/common/utils/ |
H A D | componentInfo.h | 48 OffsetF windowOffset; member
|
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | frame_node_modifier.cpp | 233 void GetPositionToWindow(ArkUINodeHandle node, ArkUI_Float32 (*windowOffset)[2], ArkUI_Bool useVp) in GetPositionToWindow() argument 239 (*windowOffset)[0] = PipelineBase::Px2VpWithCurrentDensity(offset.GetX()); in GetPositionToWindow() 240 (*windowOffset)[1] = PipelineBase::Px2VpWithCurrentDensity(offset.GetY()); in GetPositionToWindow() 242 (*windowOffset)[0] = offset.GetX(); in GetPositionToWindow() 243 (*windowOffset)[1] = offset.GetY(); in GetPositionToWindow()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/patternlock/ |
H A D | patternlock_pattern.cpp | 856 auto windowOffset = pipelineContext->GetCurrentWindowRect().GetOffset(); in GetTouchOffsetToNode() local 861 OffsetF offset(windowOffset.GetX() + nodeOffset.GetX(), windowOffset.GetY() + nodeOffset.GetY()); in GetTouchOffsetToNode()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/button/ |
H A D | button_pattern.cpp | 498 auto windowOffset = pipeline->GetCurrentWindowRect().GetOffset(); in SetButtonPress() local 499 auto screenX = Dimension(windowOffset.GetX()) + globalX; in SetButtonPress() 500 auto screenY = Dimension(windowOffset.GetY()) + globalY; in SetButtonPress()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/container_modal/enhance/ |
H A D | container_modal_pattern_enhance.cpp | 542 auto windowOffset = pipeline->GetCurrentWindowRect().GetOffset(); in CalculateMenuOffset() local 546 float offsetX = nodeOffset.GetX() + windowOffset.GetX() - menuWidth + buttonSize; in CalculateMenuOffset() 547 float offsetY = nodeOffset.GetY() + windowOffset.GetY() + buttonSize; in CalculateMenuOffset()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/security_component/ |
H A D | security_component_handler.cpp | 48 auto windowOffset = pipelineContext->GetDisplayWindowRectInfo().GetOffset(); in GetDisplayOffset() local 49 offsetX = x + windowOffset.GetX(); in GetDisplayOffset() 50 offsetY = y + windowOffset.GetY(); in GetDisplayOffset()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/base/ |
H A D | frame_node.cpp | 3178 auto windowOffset = pipelineContext->GetCurrentWindowRect().GetOffset(); in GetPositionToScreen() local 3187 OffsetF offset(windowOffset.GetX() + offsetCurrent.GetX(), windowOffset.GetY() + offsetCurrent.GetY()); in GetPositionToScreen() 3210 auto windowOffset = pipelineContext->GetCurrentWindowRect().GetOffset(); in GetPositionToScreenWithTransform() local 3220 OffsetF offset(windowOffset.GetX() + nodeOffset.GetX(), windowOffset.GetY() + nodeOffset.GetY()); in GetPositionToScreenWithTransform() 4494 auto windowOffset = window->GetCurrentWindowRect().GetOffset(); in GetOffsetInScreen() local 4495 frameOffset += OffsetT<float> { windowOffset.GetX(), windowOffset.GetY() }; in GetOffsetInScreen() 5216 "OnVisibleAreaChange Node(%{public}s/%{public}d) windowOffset in GetCacheVisibleRect() 5229 OffsetF windowOffset; CalculateCacheVisibleRect() local [all...] |
H A D | inspector.cpp | 503 rectangle.windowOffset = frameNode->GetOffsetRelativeToWindow(); in GetRectangleById() 509 LOGI("GetRectangleById Id:%{public}d key:%{public}s localOffset:%{public}s windowOffset:%{public}s " in GetRectangleById() 512 rectangle.windowOffset.ToString().c_str(), rectangle.screenRect.ToString().c_str()); in GetRectangleById()
|
H A D | frame_node.h | 73 OffsetF windowOffset = OffsetF(); member
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/ |
H A D | arkts_native_frame_node_bridge.cpp | 992 ArkUI_Float32 windowOffset[2]; 993 GetArkUINodeModifiers()->getFrameNodeModifier()->getPositionToWindow(nativeNode, &windowOffset, true); 994 CHECK_NULL_RETURN(windowOffset, panda::JSValueRef::Undefined(vm)); 995 Framework::ArrayRef::SetValueAt(vm, valueArray, 0, panda::NumberRef::New(vm, windowOffset[0])); 996 Framework::ArrayRef::SetValueAt(vm, valueArray, 1, panda::NumberRef::New(vm, windowOffset[1]));
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/manager/drag_drop/ |
H A D | drag_drop_manager.cpp | 1666 auto windowOffset = window->GetCurrentWindowRect().GetOffset(); in GetTouchOffsetRelativeToSubwindow() local 1667 touchOffset.SetX(touchOffset.GetX() + windowOffset.GetX()); in GetTouchOffsetRelativeToSubwindow() 1668 touchOffset.SetY(touchOffset.GetY() + windowOffset.GetY()); in GetTouchOffsetRelativeToSubwindow()
|
/foundation/arkui/ace_engine/frameworks/core/components/web/resource/ |
H A D | web_delegate.cpp | 6173 auto windowOffset = context->GetDisplayWindowRectInfo().GetOffset(); in UpdateScreenOffSet() local 6174 offsetX += windowOffset.GetX(); in UpdateScreenOffSet() 6175 offsetY += windowOffset.GetY(); in UpdateScreenOffSet() 6185 auto windowOffset = context->GetDisplayWindowRectInfo().GetOffset(); in UpdateScreenOffSet() 6186 offsetX += windowOffset.GetX(); in UpdateScreenOffSet() 6187 offsetY += windowOffset.GetY(); in UpdateScreenOffSet() 6196 auto windowOffset = context->GetDisplayWindowRectInfo().GetOffset(); in UpdateScreenOffSet() 6197 offsetX += windowOffset.GetX(); in UpdateScreenOffSet() 6198 offsetY += windowOffset.GetY(); in UpdateScreenOffSet()
|
/foundation/arkui/ace_engine/frameworks/core/components/text_field/ |
H A D | render_text_field.cpp | 495 auto windowOffset = context->GetDisplayWindowRectInfo().GetOffset(); in UpdateCaretInfoToController() local 496 MiscServices::CursorInfo cursorInfo { .left = caretRect_.Left() + globalOffset.GetX() + windowOffset.GetX(), in UpdateCaretInfoToController() 497 .top = caretRect_.Top() + globalOffset.GetY() + windowOffset.GetY(), in UpdateCaretInfoToController()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/event/ |
H A D | focus_hub.cpp | 1150 auto windowOffset = pipelineContext->GetCurrentWindowRect().GetOffset() + centerToWindow; 1151 info.SetScreenLocation(windowOffset);
|
/foundation/arkui/ace_engine/frameworks/core/interfaces/cjui/ |
H A D | cjui_api.h | 3010 void (*getPositionToWindow)(ArkUINodeHandle node, ArkUI_Float32 (*windowOffset)[2], ArkUI_Bool useVp);
|
/foundation/arkui/ace_engine/frameworks/core/interfaces/arkoala/ |
H A D | arkoala_api.h | 4810 void (*getPositionToWindow)(ArkUINodeHandle node, ArkUI_Float32 (*windowOffset)[2], ArkUI_Bool useVp);
|