Home
last modified time | relevance | path

Searched refs:Px2VpWithCurrentDensity (Results 1 – 25 of 30) sorted by relevance

12

/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/functions/
H A Djs_click_function.cpp46 obj->SetProperty<double>("x", PipelineBase::Px2VpWithCurrentDensity(localOffset.GetX())); in Execute()
47 obj->SetProperty<double>("y", PipelineBase::Px2VpWithCurrentDensity(localOffset.GetY())); in Execute()
80 obj->SetProperty<double>("x", PipelineBase::Px2VpWithCurrentDensity(localOffset.GetX())); in Execute()
81 obj->SetProperty<double>("y", PipelineBase::Px2VpWithCurrentDensity(localOffset.GetY())); in Execute()
117 obj->SetProperty<double>("x", PipelineBase::Px2VpWithCurrentDensity(localOffset.GetX())); in Execute()
118 obj->SetProperty<double>("y", PipelineBase::Px2VpWithCurrentDensity(localOffset.GetY())); in Execute()
163 obj->SetProperty<double>("x", PipelineBase::Px2VpWithCurrentDensity(localOffset.GetX())); in Execute()
164 obj->SetProperty<double>("y", PipelineBase::Px2VpWithCurrentDensity(localOffset.GetY())); in Execute()
197 obj->SetProperty<double>("x", PipelineBase::Px2VpWithCurrentDensity(localOffset.GetX())); in Execute()
198 obj->SetProperty<double>("y", PipelineBase::Px2VpWithCurrentDensity(localOffset.GetY())); in Execute()
[all …]
H A Djs_on_child_touch_test_function.cpp38 …infoObj->SetProperty<double>("windowX", PipelineBase::Px2VpWithCurrentDensity(info.windowPoint.Get… in CreateTouchTestInfo()
39 …infoObj->SetProperty<double>("windowY", PipelineBase::Px2VpWithCurrentDensity(info.windowPoint.Get… in CreateTouchTestInfo()
40 …infoObj->SetProperty<double>("parentX", PipelineBase::Px2VpWithCurrentDensity(info.currentCmpPoint… in CreateTouchTestInfo()
41 …infoObj->SetProperty<double>("parentY", PipelineBase::Px2VpWithCurrentDensity(info.currentCmpPoint… in CreateTouchTestInfo()
42 … infoObj->SetProperty<double>("x", PipelineBase::Px2VpWithCurrentDensity(info.subCmpPoint.GetX())); in CreateTouchTestInfo()
43 … infoObj->SetProperty<double>("y", PipelineBase::Px2VpWithCurrentDensity(info.subCmpPoint.GetY())); in CreateTouchTestInfo()
52 rectangleObj->SetProperty<double>("x", PipelineBase::Px2VpWithCurrentDensity(info.GetX())); in CreateRectangle()
53 rectangleObj->SetProperty<double>("y", PipelineBase::Px2VpWithCurrentDensity(info.GetY())); in CreateRectangle()
54 rectangleObj->SetProperty<double>("width", PipelineBase::Px2VpWithCurrentDensity(info.Width())); in CreateRectangle()
55 … rectangleObj->SetProperty<double>("height", PipelineBase::Px2VpWithCurrentDensity(info.Height())); in CreateRectangle()
H A Djs_gesture_function.cpp41 …gestureInfoObj->SetProperty<double>("offsetX", PipelineBase::Px2VpWithCurrentDensity(info.GetOffse… in CreateGestureEvent()
42 …gestureInfoObj->SetProperty<double>("offsetY", PipelineBase::Px2VpWithCurrentDensity(info.GetOffse… in CreateGestureEvent()
48 "pinchCenterX", PipelineBase::Px2VpWithCurrentDensity(info.GetPinchCenter().GetX())); in CreateGestureEvent()
50 "pinchCenterY", PipelineBase::Px2VpWithCurrentDensity(info.GetPinchCenter().GetY())); in CreateGestureEvent()
58 "velocityX", PipelineBase::Px2VpWithCurrentDensity(info.GetVelocity().GetVelocityX())); in CreateGestureEvent()
60 "velocityY", PipelineBase::Px2VpWithCurrentDensity(info.GetVelocity().GetVelocityY())); in CreateGestureEvent()
62 "velocity", PipelineBase::Px2VpWithCurrentDensity(info.GetVelocity().GetVelocityValue())); in CreateGestureEvent()
109 …fingerInfoObj->SetProperty<double>("globalX", PipelineBase::Px2VpWithCurrentDensity(globalLocation… in CreateFingerInfo()
110 …fingerInfoObj->SetProperty<double>("globalY", PipelineBase::Px2VpWithCurrentDensity(globalLocation… in CreateFingerInfo()
111 …fingerInfoObj->SetProperty<double>("localX", PipelineBase::Px2VpWithCurrentDensity(localLocation.G… in CreateFingerInfo()
[all …]
H A Djs_gesture_judge_function.cpp84 …fingerInfoObj->SetProperty<double>("globalX", PipelineBase::Px2VpWithCurrentDensity(globalLocation… in CreateFingerInfo()
85 …fingerInfoObj->SetProperty<double>("globalY", PipelineBase::Px2VpWithCurrentDensity(globalLocation… in CreateFingerInfo()
86 …fingerInfoObj->SetProperty<double>("localX", PipelineBase::Px2VpWithCurrentDensity(localLocation.G… in CreateFingerInfo()
87 …fingerInfoObj->SetProperty<double>("localY", PipelineBase::Px2VpWithCurrentDensity(localLocation.G… in CreateFingerInfo()
88 …fingerInfoObj->SetProperty<double>("displayX", PipelineBase::Px2VpWithCurrentDensity(screenLocatio… in CreateFingerInfo()
89 …fingerInfoObj->SetProperty<double>("displayY", PipelineBase::Px2VpWithCurrentDensity(screenLocatio… in CreateFingerInfo()
129 … "offsetX", PipelineBase::Px2VpWithCurrentDensity(panGestureEvent->GetOffsetX())); in SetUniqueAttributes()
131 … "offsetY", PipelineBase::Px2VpWithCurrentDensity(panGestureEvent->GetOffsetY())); in SetUniqueAttributes()
133 …"velocityX", PipelineBase::Px2VpWithCurrentDensity(panGestureEvent->GetVelocity().GetVelocityX())); in SetUniqueAttributes()
135 …"velocityY", PipelineBase::Px2VpWithCurrentDensity(panGestureEvent->GetVelocity().GetVelocityY())); in SetUniqueAttributes()
[all …]
H A Djs_touch_function.cpp35 …touchInfoObj->SetProperty<double>("displayX", PipelineBase::Px2VpWithCurrentDensity(screenLocation… in CreateTouchInfo()
36 …touchInfoObj->SetProperty<double>("displayY", PipelineBase::Px2VpWithCurrentDensity(screenLocation… in CreateTouchInfo()
37 …touchInfoObj->SetProperty<double>("windowX", PipelineBase::Px2VpWithCurrentDensity(globalLocation.… in CreateTouchInfo()
38 …touchInfoObj->SetProperty<double>("windowY", PipelineBase::Px2VpWithCurrentDensity(globalLocation.… in CreateTouchInfo()
39 …touchInfoObj->SetProperty<double>("screenX", PipelineBase::Px2VpWithCurrentDensity(globalLocation.… in CreateTouchInfo()
40 …touchInfoObj->SetProperty<double>("screenY", PipelineBase::Px2VpWithCurrentDensity(globalLocation.… in CreateTouchInfo()
41 …touchInfoObj->SetProperty<double>("x", PipelineBase::Px2VpWithCurrentDensity(localLocation.GetX())… in CreateTouchInfo()
42 …touchInfoObj->SetProperty<double>("y", PipelineBase::Px2VpWithCurrentDensity(localLocation.GetY())… in CreateTouchInfo()
H A Djs_on_area_change_function.cpp34 offset->SetProperty<double>("x", PipelineBase::Px2VpWithCurrentDensity(localOffset.GetX())); in CreateAreaObject()
35 offset->SetProperty<double>("y", PipelineBase::Px2VpWithCurrentDensity(localOffset.GetY())); in CreateAreaObject()
36 …globalOffset->SetProperty<double>("x", PipelineBase::Px2VpWithCurrentDensity(localOffset.GetX() + … in CreateAreaObject()
37 …globalOffset->SetProperty<double>("y", PipelineBase::Px2VpWithCurrentDensity(localOffset.GetY() + … in CreateAreaObject()
44 area->SetProperty<double>("width", PipelineBase::Px2VpWithCurrentDensity(rect.Width())); in CreateAreaObject()
45 area->SetProperty<double>("height", PipelineBase::Px2VpWithCurrentDensity(rect.Height())); in CreateAreaObject()
H A Djs_on_size_change_function.cpp28 oldSize->SetProperty<double>("width", PipelineBase::Px2VpWithCurrentDensity(oldRect.Width())); in Execute()
29 oldSize->SetProperty<double>("height", PipelineBase::Px2VpWithCurrentDensity(oldRect.Height())); in Execute()
30 newSize->SetProperty<double>("width", PipelineBase::Px2VpWithCurrentDensity(rect.Width())); in Execute()
31 newSize->SetProperty<double>("height", PipelineBase::Px2VpWithCurrentDensity(rect.Height())); in Execute()
H A Djs_hover_function.cpp70 …hoverObj->SetProperty<double>("displayX", PipelineBase::Px2VpWithCurrentDensity(screenLocation.Get… in AccessibilityHoverExecute()
71 …hoverObj->SetProperty<double>("displayY", PipelineBase::Px2VpWithCurrentDensity(screenLocation.Get… in AccessibilityHoverExecute()
72 …hoverObj->SetProperty<double>("windowX", PipelineBase::Px2VpWithCurrentDensity(globalLocation.GetX… in AccessibilityHoverExecute()
73 …hoverObj->SetProperty<double>("windowY", PipelineBase::Px2VpWithCurrentDensity(globalLocation.GetY… in AccessibilityHoverExecute()
74 hoverObj->SetProperty<double>("x", PipelineBase::Px2VpWithCurrentDensity(localLocation.GetX())); in AccessibilityHoverExecute()
75 hoverObj->SetProperty<double>("y", PipelineBase::Px2VpWithCurrentDensity(localLocation.GetY())); in AccessibilityHoverExecute()
H A Djs_drag_function.cpp146 auto xValue = JSVal(ToJSValue(PipelineBase::Px2VpWithCurrentDensity(dragEvent_->GetScreenX()))); in GetScreenX()
153 auto yValue = JSVal(ToJSValue(PipelineBase::Px2VpWithCurrentDensity(dragEvent_->GetScreenY()))); in GetScreenY()
160 auto xValue = JSVal(ToJSValue(PipelineBase::Px2VpWithCurrentDensity(dragEvent_->GetX()))); in GetX()
167 auto yValue = JSVal(ToJSValue(PipelineBase::Px2VpWithCurrentDensity(dragEvent_->GetY()))); in GetY()
357 … ToJSValue(PipelineBase::Px2VpWithCurrentDensity(dragEvent_->GetVelocity().GetVelocityValue()))); in GetVelocity()
393 rectObj->SetProperty<double>("x", PipelineBase::Px2VpWithCurrentDensity(info.Left())); in CreateRectangle()
394 rectObj->SetProperty<double>("y", PipelineBase::Px2VpWithCurrentDensity(info.Top())); in CreateRectangle()
395 rectObj->SetProperty<double>("width", PipelineBase::Px2VpWithCurrentDensity(info.Width())); in CreateRectangle()
396 rectObj->SetProperty<double>("height", PipelineBase::Px2VpWithCurrentDensity(info.Height())); in CreateRectangle()
499 itemDragInfoObj->SetProperty<double>("x", PipelineBase::Px2VpWithCurrentDensity(info.GetX())); in CreateItemDragInfo()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_common_ffi.cpp47 ffiTouches.globalX = PipelineBase::Px2VpWithCurrentDensity(globalLoc.GetX()); in TransformNativeTouchLocationInfo()
48 ffiTouches.globalY = PipelineBase::Px2VpWithCurrentDensity(globalLoc.GetY()); in TransformNativeTouchLocationInfo()
50 ffiTouches.localX = PipelineBase::Px2VpWithCurrentDensity(localLoc.GetX()); in TransformNativeTouchLocationInfo()
51 ffiTouches.localY = PipelineBase::Px2VpWithCurrentDensity(localLoc.GetY()); in TransformNativeTouchLocationInfo()
63 ffiFingers.globalX = PipelineBase::Px2VpWithCurrentDensity(globalLoc.GetX()); in TransformNativeCJFingerInfo()
64 ffiFingers.globalY = PipelineBase::Px2VpWithCurrentDensity(globalLoc.GetY()); in TransformNativeCJFingerInfo()
66 ffiFingers.localX = PipelineBase::Px2VpWithCurrentDensity(localLoc.GetX()); in TransformNativeCJFingerInfo()
67 ffiFingers.localY = PipelineBase::Px2VpWithCurrentDensity(localLoc.GetY()); in TransformNativeCJFingerInfo()
H A Dcj_interactable_view_ffi.cpp239 cjMouseEvent.screenX = PipelineBase::Px2VpWithCurrentDensity(globalOffset.GetX()); in FfiOHOSAceFrameworkInteractableViewOnMouse()
240 cjMouseEvent.screenY = PipelineBase::Px2VpWithCurrentDensity(globalOffset.GetY()); in FfiOHOSAceFrameworkInteractableViewOnMouse()
241 cjMouseEvent.x = PipelineBase::Px2VpWithCurrentDensity(localOffset.GetX()); in FfiOHOSAceFrameworkInteractableViewOnMouse()
242 cjMouseEvent.y = PipelineBase::Px2VpWithCurrentDensity(localOffset.GetY()); in FfiOHOSAceFrameworkInteractableViewOnMouse()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/
H A Djs_types.cpp100 ToJSValue("x"), ToJSValue(PipelineBase::Px2VpWithCurrentDensity(localLocation.GetX()))); in JsGetHistoricalPoints()
102 ToJSValue("y"), ToJSValue(PipelineBase::Px2VpWithCurrentDensity(localLocation.GetY()))); in JsGetHistoricalPoints()
104 … ToJSValue("screenX"), ToJSValue(PipelineBase::Px2VpWithCurrentDensity(globalLocation.GetX()))); in JsGetHistoricalPoints()
106 … ToJSValue("screenY"), ToJSValue(PipelineBase::Px2VpWithCurrentDensity(globalLocation.GetY()))); in JsGetHistoricalPoints()
108 … ToJSValue("windowX"), ToJSValue(PipelineBase::Px2VpWithCurrentDensity(globalLocation.GetX()))); in JsGetHistoricalPoints()
110 … ToJSValue("windowY"), ToJSValue(PipelineBase::Px2VpWithCurrentDensity(globalLocation.GetY()))); in JsGetHistoricalPoints()
112 … ToJSValue("displayX"), ToJSValue(PipelineBase::Px2VpWithCurrentDensity(screenLocation.GetX()))); in JsGetHistoricalPoints()
114 … ToJSValue("displayY"), ToJSValue(PipelineBase::Px2VpWithCurrentDensity(screenLocation.GetY()))); in JsGetHistoricalPoints()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dframe_node_modifier.cpp238 (*parentOffset)[0] = PipelineBase::Px2VpWithCurrentDensity(offset.GetX()); in GetPositionToParent()
239 (*parentOffset)[1] = PipelineBase::Px2VpWithCurrentDensity(offset.GetY()); in GetPositionToParent()
252 (*screenPosition)[0] = PipelineBase::Px2VpWithCurrentDensity(offset.GetX()); in GetPositionToScreen()
253 (*screenPosition)[1] = PipelineBase::Px2VpWithCurrentDensity(offset.GetY()); in GetPositionToScreen()
266 (*windowOffset)[0] = PipelineBase::Px2VpWithCurrentDensity(offset.GetX()); in GetPositionToWindow()
267 (*windowOffset)[1] = PipelineBase::Px2VpWithCurrentDensity(offset.GetY()); in GetPositionToWindow()
280 (*parentPosition)[0] = PipelineBase::Px2VpWithCurrentDensity(offset.GetX()); in GetPositionToParentWithTransform()
281 (*parentPosition)[1] = PipelineBase::Px2VpWithCurrentDensity(offset.GetY()); in GetPositionToParentWithTransform()
294 (*screenPosition)[0] = PipelineBase::Px2VpWithCurrentDensity(offset.GetX()); in GetPositionToScreenWithTransform()
295 (*screenPosition)[1] = PipelineBase::Px2VpWithCurrentDensity(offset.GetY()); in GetPositionToScreenWithTransform()
[all …]
H A Dnode_common_modifier.cpp6523 PipelineBase::Px2VpWithCurrentDensity(oldLocalOffset.GetX() + oldOrigin.GetX()); in SetOnAreaChange()
6525 PipelineBase::Px2VpWithCurrentDensity(oldLocalOffset.GetY() + oldOrigin.GetY()); in SetOnAreaChange()
6528 event.componentAsyncEvent.data[6].f32 = PipelineBase::Px2VpWithCurrentDensity(rect.Width()); in SetOnAreaChange()
6529 … event.componentAsyncEvent.data[7].f32 = PipelineBase::Px2VpWithCurrentDensity(rect.Height()); in SetOnAreaChange()
6533 PipelineBase::Px2VpWithCurrentDensity(localOffset.GetX() + origin.GetX()); in SetOnAreaChange()
6535 PipelineBase::Px2VpWithCurrentDensity(localOffset.GetY() + origin.GetY()); in SetOnAreaChange()
6572 usePx ? PipelineBase::Px2VpWithCurrentDensity(localOffset.GetX()) : localOffset.GetX(); in SetOnClick()
6575 usePx ? PipelineBase::Px2VpWithCurrentDensity(localOffset.GetY()) : localOffset.GetY(); in SetOnClick()
6582 … usePx ? PipelineBase::Px2VpWithCurrentDensity(globalOffset.GetX()) : globalOffset.GetX(); in SetOnClick()
6585 … usePx ? PipelineBase::Px2VpWithCurrentDensity(globalOffset.GetY()) : globalOffset.GetY(); in SetOnClick()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_location_button.cpp101 …clickEventParam->SetProperty<double>("screenX", PipelineBase::Px2VpWithCurrentDensity(globalOffset… in Execute()
102 …clickEventParam->SetProperty<double>("screenY", PipelineBase::Px2VpWithCurrentDensity(globalOffset… in Execute()
103 …clickEventParam->SetProperty<double>("x", PipelineBase::Px2VpWithCurrentDensity(localOffset.GetX()… in Execute()
104 …clickEventParam->SetProperty<double>("y", PipelineBase::Px2VpWithCurrentDensity(localOffset.GetY()… in Execute()
H A Djs_paste_button.cpp100 …clickEventParam->SetProperty<double>("screenX", PipelineBase::Px2VpWithCurrentDensity(globalOffset… in Execute()
101 …clickEventParam->SetProperty<double>("screenY", PipelineBase::Px2VpWithCurrentDensity(globalOffset… in Execute()
102 …clickEventParam->SetProperty<double>("x", PipelineBase::Px2VpWithCurrentDensity(localOffset.GetX()… in Execute()
103 …clickEventParam->SetProperty<double>("y", PipelineBase::Px2VpWithCurrentDensity(localOffset.GetY()… in Execute()
H A Djs_save_button.cpp101 …clickEventParam->SetProperty<double>("screenX", PipelineBase::Px2VpWithCurrentDensity(globalOffset… in Execute()
102 …clickEventParam->SetProperty<double>("screenY", PipelineBase::Px2VpWithCurrentDensity(globalOffset… in Execute()
103 …clickEventParam->SetProperty<double>("x", PipelineBase::Px2VpWithCurrentDensity(localOffset.GetX()… in Execute()
104 …clickEventParam->SetProperty<double>("y", PipelineBase::Px2VpWithCurrentDensity(localOffset.GetY()… in Execute()
H A Djs_node_container.cpp298 obj->SetProperty<double>("width", PipelineBase::Px2VpWithCurrentDensity(size.Width())); in SetOnResizeFunc()
299 obj->SetProperty<double>("height", PipelineBase::Px2VpWithCurrentDensity(size.Height())); in SetOnResizeFunc()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/side_bar/
H A Drender_side_bar_container.cpp203 curPosition_ = Dimension(PipelineBase::Px2VpWithCurrentDensity(offset), DimensionUnit::VP); in UpdateElementPosition()
290 double value = PipelineBase::Px2VpWithCurrentDensity(width.Value() * layoutSize.Width()); in ConvertWidthToVp()
507 Dimension(PipelineBase::Px2VpWithCurrentDensity(sideBarLine), DimensionUnit::VP)); in HandleDragUpdate()
509 … sidebarWidth_ = Dimension(PipelineBase::Px2VpWithCurrentDensity(sideBarLine), DimensionUnit::VP); in HandleDragUpdate()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/
H A Dtabs_node.cpp169 return Dimension(PipelineBase::Px2VpWithCurrentDensity(frameSize.Width()), DimensionUnit::VP); in GetBarWidth()
194 return Dimension(PipelineBase::Px2VpWithCurrentDensity(frameSize.Height()), DimensionUnit::VP); in GetBarHeight()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/app_bar/
H A Datomic_service_pattern.cpp323 …Dimension safeAreaLeft(pipeline->Px2VpWithCurrentDensity(safeArea.left_.Length()), DimensionUnit::… in UpdateMenuBarLayout()
324 …Dimension safeAreaRight(pipeline->Px2VpWithCurrentDensity(safeArea.right_.Length()), DimensionUnit… in UpdateMenuBarLayout()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/
H A Dinspector_composed_element.cpp545 PipelineBase::Px2VpWithCurrentDensity(layoutParam.GetMinSize().Width()), DimensionUnit::VP); in GetConstraintSize()
547 … PipelineBase::Px2VpWithCurrentDensity(layoutParam.GetMinSize().Height()), DimensionUnit::VP); in GetConstraintSize()
549 PipelineBase::Px2VpWithCurrentDensity(layoutParam.GetMaxSize().Width()), DimensionUnit::VP); in GetConstraintSize()
551 … PipelineBase::Px2VpWithCurrentDensity(layoutParam.GetMaxSize().Height()), DimensionUnit::VP); in GetConstraintSize()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/
H A Darkts_native_render_node_bridge.cpp205 …panda::NumberRef::New(vm, static_cast<double>(PipelineBase::Px2VpWithCurrentDensity(context.height… in FireDrawCallback()
206 …panda::NumberRef::New(vm, static_cast<double>(PipelineBase::Px2VpWithCurrentDensity(context.width)… in FireDrawCallback()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/gestures/recognizers/
H A Dclick_recognizer.cpp435 …if (GreatOrEqual(PipelineBase::Px2VpWithCurrentDensity(slop.GetDistance()), MAX_THRESHOLD_MANYTAP)… in ExceedSlop()
/ohos5.0/foundation/arkui/ace_engine/test/mock/core/pipeline/
H A Dmock_pipeline_context.cpp785 double PipelineBase::Px2VpWithCurrentDensity(double px) in Px2VpWithCurrentDensity() function in OHOS::Ace::PipelineBase

12