/foundation/arkui/ace_engine/test/unittest/core/pattern/scrollable/ |
H A D | scrollable_fling_test_ng.cpp | 230 Offset localLocation; in HWTEST_F() local 231 localLocation.SetX(-1.0f); in HWTEST_F() 232 localLocation.SetY(-1.1f); in HWTEST_F() 233 scrollPn->lastMouseMove_.SetLocalLocation(localLocation); in HWTEST_F() 243 localLocation.SetX(-1.0f); in HWTEST_F() 244 localLocation.SetY(-0.0f); in HWTEST_F() 245 scrollPn->lastMouseMove_.SetLocalLocation(localLocation); in HWTEST_F() 256 localLocation.SetX(-1.0f); in HWTEST_F() 257 localLocation.SetY(-1.1f); in HWTEST_F() 258 scrollPn->lastMouseMove_.SetLocalLocation(localLocation); in HWTEST_F() 308 Offset localLocation; HWTEST_F() local 511 Offset localLocation; HWTEST_F() local 1145 Offset localLocation; HWTEST_F() local 1223 Offset localLocation; HWTEST_F() local 1426 Offset localLocation; HWTEST_F() local [all...] |
H A D | scrollable_test_ng.cpp | 486 Offset localLocation; in HWTEST_F() local 487 localLocation.SetX(-1.0f); in HWTEST_F() 488 localLocation.SetY(-1.1f); in HWTEST_F() 489 scrollPn->lastMouseMove_.SetLocalLocation(localLocation); in HWTEST_F() 516 Offset localLocation; in HWTEST_F() local 517 localLocation.SetX(-1.0f); in HWTEST_F() 518 localLocation.SetY(-0.0f); in HWTEST_F() 519 scrollPn->lastMouseMove_.SetLocalLocation(localLocation); in HWTEST_F() 547 Offset localLocation; in HWTEST_F() local 548 localLocation in HWTEST_F() 580 Offset localLocation; HWTEST_F() local 814 Offset localLocation; HWTEST_F() local 881 Offset localLocation; HWTEST_F() local [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/functions/ |
H A D | js_pan_function.cpp | 26 const OHOS::Ace::Offset& localLocation = info.GetLocalLocation(); in createPanInfo() local 29 panInfoObj->SetProperty<double>("localX", localLocation.GetX()); in createPanInfo() 30 panInfoObj->SetProperty<double>("localY", localLocation.GetY()); in createPanInfo()
|
H A D | js_gesture_function.cpp | 106 const OHOS::Ace::Offset& localLocation = fingerInfo.localLocation_; in CreateFingerInfo() local 111 fingerInfoObj->SetProperty<double>("localX", PipelineBase::Px2VpWithCurrentDensity(localLocation.GetX())); in CreateFingerInfo() 112 fingerInfoObj->SetProperty<double>("localY", PipelineBase::Px2VpWithCurrentDensity(localLocation.GetY())); in CreateFingerInfo()
|
H A D | js_hover_function.cpp | 69 const OHOS::Ace::Offset& localLocation = hoverInfo.GetLocalLocation(); in AccessibilityHoverExecute() local 76 hoverObj->SetProperty<double>("x", PipelineBase::Px2VpWithCurrentDensity(localLocation.GetX())); in AccessibilityHoverExecute() 77 hoverObj->SetProperty<double>("y", PipelineBase::Px2VpWithCurrentDensity(localLocation.GetY())); in AccessibilityHoverExecute()
|
H A D | js_touch_function.cpp | 31 const OHOS::Ace::Offset& localLocation = touchInfo.GetLocalLocation(); in CreateTouchInfo() local 41 touchInfoObj->SetProperty<double>("x", PipelineBase::Px2VpWithCurrentDensity(localLocation.GetX())); in CreateTouchInfo() 42 touchInfoObj->SetProperty<double>("y", PipelineBase::Px2VpWithCurrentDensity(localLocation.GetY())); in CreateTouchInfo()
|
H A D | js_gesture_judge_function.cpp | 81 const OHOS::Ace::Offset& localLocation = fingerInfo.localLocation_; in CreateFingerInfo() local 86 fingerInfoObj->SetProperty<double>("localX", PipelineBase::Px2VpWithCurrentDensity(localLocation.GetX())); in CreateFingerInfo() 87 fingerInfoObj->SetProperty<double>("localY", PipelineBase::Px2VpWithCurrentDensity(localLocation.GetY())); in CreateFingerInfo()
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/calendar/ |
H A D | calendar_month_pattern_test.cpp | 899 auto localLocation = Offset(1, 1); in HWTEST_F() local 900 auto ret = calendarMonthPattern->JudgeArea(localLocation); in HWTEST_F() 926 auto localLocation = Offset(1, 1); local 927 auto ret = calendarMonthPattern->JudgeArea(localLocation); 956 auto localLocation = Offset(1, 1); local 957 calendarMonthPattern->OnTouchEvent(localLocation, false); 988 auto localLocation = Offset(1, 1); in HWTEST_F() local 989 calendarMonthPattern->OnTouchEvent(localLocation, false); in HWTEST_F() 1019 auto localLocation = Offset(1, 1); in HWTEST_F() local 1020 calendarMonthPattern->OnTouchEvent(localLocation, fals in HWTEST_F() 1052 auto localLocation = Offset(1, 1); HWTEST_F() local 1085 auto localLocation = Offset(0.0, 0.0); HWTEST_F() local 1117 auto localLocation = Offset(0.0, 0.0); HWTEST_F() local 1149 auto localLocation = Offset(0.0, 0.0); HWTEST_F() local 1182 auto localLocation = Offset(0.0, 0.0); HWTEST_F() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/gestures/ |
H A D | multi_fingers_recognizer.cpp | 79 Offset localLocation = point.second.GetOffset() - coordinateOffset; in SetFingerList() local 80 FingerInfo fingerInfo = {point.first, point.second.GetOffset(), localLocation}; in SetFingerList()
|
H A D | gesture_event.h | 114 GestureEvent& SetLocalLocation(const Offset& localLocation) in SetLocalLocation() argument 116 localLocation_ = localLocation; in SetLocalLocation()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/calendar/ |
H A D | calendar_month_pattern.h | 133 void OnClick(Offset& localLocation, const ObtainedMonth& obtainedMonth); 134 void OnTouchEvent(const Offset& localLocation, bool isPressed); 135 void OnHoverEvent(const Offset& localLocation, bool state);
|
H A D | calendar_month_pattern.cpp | 220 auto localLocation = info.GetFingerList().begin()->localLocation_; in InitClickEvent() 221 calendarPattern->OnClick(localLocation, calendarPattern->obtainedMonth_); in InitClickEvent() 269 Offset localLocation; in InitHoverEvent() 270 calendarPattern->OnHoverEvent(localLocation, false); in InitHoverEvent() 283 void CalendarMonthPattern::OnClick(Offset& localLocation, const ObtainedMonth& obtainedMonth) in OnClick() argument 289 auto index = JudgeArea(localLocation); in OnClick() 309 void CalendarMonthPattern::OnTouchEvent(const Offset& localLocation, bool isPressed) in OnTouchEvent() argument 314 auto index = JudgeArea(localLocation); in OnTouchEvent() 328 void CalendarMonthPattern::OnHoverEvent(const Offset& localLocation, bool state) in OnHoverEvent() argument 333 int32_t index = JudgeArea(localLocation); in OnHoverEvent() [all...] |
/foundation/arkui/ace_engine/test/unittest/core/pattern/scroll/ |
H A D | scroll_inner_event_test_ng.cpp | 39 void MouseOnScroll(MouseButton mouseButton, MouseAction mouseAction, Offset localLocation); 42 void TouchOnScrollBar(TouchType touchType, SourceType sourceType, Offset localLocation); 43 void MouseOnScrollBar(MouseButton mouseButton, MouseAction mouseAction, Offset localLocation); 51 void ScrollInnerEventTestNg::MouseOnScroll(MouseButton mouseButton, MouseAction mouseAction, Offset localLocation) in MouseOnScroll() argument 57 mouseInfo.SetLocalLocation(localLocation); in MouseOnScroll() 77 void ScrollInnerEventTestNg::TouchOnScrollBar(TouchType touchType, SourceType sourceType, Offset localLocation) in TouchOnScrollBar() argument 81 locationInfo.SetLocalLocation(localLocation); in TouchOnScrollBar() 89 void ScrollInnerEventTestNg::MouseOnScrollBar(MouseButton mouseButton, MouseAction mouseAction, Offset localLocation) in MouseOnScrollBar() argument 94 mouseInfo.SetLocalLocation(localLocation); in MouseOnScrollBar()
|
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/frontend/ |
H A D | cj_frontend.cpp | 89 auto localLocation = location.GetLocalLocation(); in TouchInfoToString() local 91 .append(std::to_string(localLocation.GetX())) in TouchInfoToString() 93 .append(std::to_string(localLocation.GetY())) in TouchInfoToString() 109 auto localLocation = change.GetLocalLocation(); in TouchInfoToString() local 111 .append(std::to_string(localLocation.GetX())) in TouchInfoToString() 113 .append(std::to_string(localLocation.GetY())) in TouchInfoToString()
|
/foundation/arkui/ace_engine/frameworks/core/event/ |
H A D | axis_event.h | 195 AxisInfo(const AxisEvent& event, const Offset& localLocation, const EventTarget& target) : BaseEventInfo("onAxis") in AxisInfo() argument 204 localLocation_ = localLocation; in AxisInfo() 278 AxisInfo& SetLocalLocation(const Offset& localLocation) in SetLocalLocation() argument 280 localLocation_ = localLocation; in SetLocalLocation() 385 Offset localLocation = Offset( in HandleAxisEvent() local 387 AxisInfo info = AxisInfo(event, localLocation, GetEventTarget().value_or(EventTarget())); in HandleAxisEvent()
|
H A D | mouse_event.h | 308 MouseInfo& SetLocalLocation(const Offset& localLocation) in SetLocalLocation() argument 310 localLocation_ = localLocation; in SetLocalLocation() 379 AccessibilityHoverInfo& SetLocalLocation(const Offset& localLocation) in SetLocalLocation() argument 381 localLocation_ = localLocation; in SetLocalLocation() 457 Offset localLocation = Offset( in HandleMouseEvent() local 459 info.SetLocalLocation(localLocation); in HandleMouseEvent()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/ |
H A D | js_types.cpp | 97 const OHOS::Ace::Offset& localLocation = point.GetLocalLocation(); in JsGetHistoricalPoints() local 102 ToJSValue("x"), ToJSValue(PipelineBase::Px2VpWithCurrentDensity(localLocation.GetX()))); in JsGetHistoricalPoints() 104 ToJSValue("y"), ToJSValue(PipelineBase::Px2VpWithCurrentDensity(localLocation.GetY()))); in JsGetHistoricalPoints()
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/web/ |
H A D | web_pattern_event_test.cpp | 96 Offset localLocation; in HWTEST_F() local 100 info.SetLocalLocation(localLocation); in HWTEST_F()
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/linear_split/ |
H A D | linear_split_test_ng.cpp | 666 Offset localLocation(333, 10); in HWTEST_F() 667 info.SetLocalLocation(localLocation); in HWTEST_F() 692 mouseInfo2.SetLocalLocation(localLocation); in HWTEST_F() 721 mouseInfo2.SetLocalLocation(localLocation); in HWTEST_F() 889 Offset localLocation(335, 10); in HWTEST_F() 890 info.SetLocalLocation(localLocation); in HWTEST_F() 916 mouseInfo2.SetLocalLocation(localLocation); in HWTEST_F() 944 mouseInfo2.SetLocalLocation(localLocation); in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/slider/ |
H A D | slider_pattern.h | 195 void UpdateValueByLocalLocation(const std::optional<Offset>& localLocation); 230 bool isMinResponseExceed(const std::optional<Offset>& localLocation);
|
/foundation/arkui/ace_engine/frameworks/bridge/plugin_frontend/ |
H A D | plugin_frontend.cpp | 71 auto localLocation = location.GetLocalLocation(); in TouchInfoToString() local 73 .append(std::to_string(localLocation.GetX())) in TouchInfoToString() 75 .append(std::to_string(localLocation.GetY())) in TouchInfoToString() 91 auto localLocation = change.GetLocalLocation(); in TouchInfoToString() local 93 .append(std::to_string(localLocation.GetX())) in TouchInfoToString() 95 .append(std::to_string(localLocation.GetY())) in TouchInfoToString()
|
/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/ |
H A D | js_frontend.cpp | 38 auto localLocation = location.GetLocalLocation(); in TouchInfoToString() local 40 .append(std::to_string(localLocation.GetX())) in TouchInfoToString() 42 .append(std::to_string(localLocation.GetY())) in TouchInfoToString() 63 auto localLocation = change.GetLocalLocation(); in TouchInfoToString() local 65 .append(std::to_string(localLocation.GetX())) in TouchInfoToString() 67 .append(std::to_string(localLocation.GetY())) in TouchInfoToString()
|
/foundation/arkui/ace_engine/frameworks/core/components/web/ |
H A D | render_web.cpp | 264 auto localLocation = event.GetOffset() - Offset(GetCoordinatePoint().GetX(), GetCoordinatePoint().GetY()); in HandleDoubleClickEvent() local 266 info.x = localLocation.GetX(); in HandleDoubleClickEvent() 267 info.y = localLocation.GetY(); in HandleDoubleClickEvent() 299 auto localLocation = event.GetOffset() - Offset(GetCoordinatePoint().GetX(), GetCoordinatePoint().GetY()); in OnMouseEvent() local 301 delegate_->OnMouseEvent(localLocation.GetX(), in OnMouseEvent() 302 localLocation.GetY(), event.button, event.action, SINGLE_CLICK_NUM); in OnMouseEvent() 463 auto localLocation = event.GetLocalLocation(); in HandleDragMove() local 465 localLocation.GetX(), localLocation.GetY(), in HandleDragMove()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/ |
H A D | text_pattern.cpp | 425 auto localLocation = info.GetLocalLocation(); in HandleSpanLongPressEvent() local 427 localLocation = ConvertGlobalToLocalOffset(info.GetGlobalLocation()); in HandleSpanLongPressEvent() 434 PointF textOffset = { static_cast<float>(localLocation.GetX()) - textContentRect.GetX(), in HandleSpanLongPressEvent() 435 static_cast<float>(localLocation.GetY()) - textContentRect.GetY() }; in HandleSpanLongPressEvent() 452 PointF(static_cast<float>(localLocation.GetX()), static_cast<float>(localLocation.GetY()))) && in HandleSpanLongPressEvent() 909 bool TextPattern::CheckClickedOnSpanOrText(RectF textContentRect, const Offset& localLocation) in CheckClickedOnSpanOrText() argument 916 PointF textOffset = GetTextOffset(localLocation, textContentRect); in CheckClickedOnSpanOrText() 926 PointF(static_cast<float>(localLocation.GetX()), static_cast<float>(localLocation in CheckClickedOnSpanOrText() 938 GetTextOffset(const Offset &localLocation, const RectF &contentRect) GetTextOffset() argument 1068 auto localLocation = info.GetLocalLocation(); HandleUrlMouseEvent() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/button/ |
H A D | button_pattern.h | 303 void SetLocalLocation(const Offset& localLocation) in SetLocalLocation() argument 305 localLocation_ = localLocation; in SetLocalLocation()
|