Home
last modified time | relevance | path

Searched refs:windowOffset (Results 1 - 17 of 17) sorted by relevance

/foundation/arkui/ace_engine/interfaces/napi/kits/componentutils/
H A Djs_component_utils.cpp51 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 DcomponentInfo.h48 OffsetF windowOffset; member
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dframe_node_modifier.cpp233 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 Dpatternlock_pattern.cpp856 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 Dbutton_pattern.cpp498 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 Dcontainer_modal_pattern_enhance.cpp542 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 Dsecurity_component_handler.cpp48 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 Dframe_node.cpp3178 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 Dinspector.cpp503 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 Dframe_node.h73 OffsetF windowOffset = OffsetF(); member
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/
H A Darkts_native_frame_node_bridge.cpp992 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 Ddrag_drop_manager.cpp1666 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 Dweb_delegate.cpp6173 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 Drender_text_field.cpp495 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 Dfocus_hub.cpp1150 auto windowOffset = pipelineContext->GetCurrentWindowRect().GetOffset() + centerToWindow;
1151 info.SetScreenLocation(windowOffset);
/foundation/arkui/ace_engine/frameworks/core/interfaces/cjui/
H A Dcjui_api.h3010 void (*getPositionToWindow)(ArkUINodeHandle node, ArkUI_Float32 (*windowOffset)[2], ArkUI_Bool useVp);
/foundation/arkui/ace_engine/frameworks/core/interfaces/arkoala/
H A Darkoala_api.h4810 void (*getPositionToWindow)(ArkUINodeHandle node, ArkUI_Float32 (*windowOffset)[2], ArkUI_Bool useVp);

Completed in 78 milliseconds