Home
last modified time | relevance | path

Searched refs:touchPoint (Results 1 - 25 of 53) sorted by relevance

123

/foundation/arkui/ace_engine/frameworks/core/gestures/
H A Dclick_recognizer.cpp70 TouchEvent touchPoint = {}; in OnAccepted() local
72 touchPoint = touchPoints_.begin()->second; in OnAccepted()
75 ClickInfo info(touchPoint.id); in OnAccepted()
76 info.SetTimeStamp(touchPoint.time); in OnAccepted()
77 info.SetGlobalLocation(touchPoint.GetOffset()).SetLocalLocation(touchPoint.GetOffset() - coordinateOffset_); in OnAccepted()
81 info.SetForce(touchPoint.force); in OnAccepted()
82 if (touchPoint.tiltX.has_value()) { in OnAccepted()
83 info.SetTiltX(touchPoint.tiltX.value()); in OnAccepted()
85 if (touchPoint in OnAccepted()
93 TouchEvent touchPoint = {}; OnAccepted() local
298 TouchEvent touchPoint = {}; SendCallbackMsg() local
[all...]
H A Drotation_recognizer.cpp171 TouchEvent touchPoint = {}; in SendCallbackMsg() local
173 touchPoint = touchPoints_.begin()->second; in SendCallbackMsg()
175 info.SetForce(touchPoint.force); in SendCallbackMsg()
176 if (touchPoint.tiltX.has_value()) { in SendCallbackMsg()
177 info.SetTiltX(touchPoint.tiltX.value()); in SendCallbackMsg()
179 if (touchPoint.tiltY.has_value()) { in SendCallbackMsg()
180 info.SetTiltY(touchPoint.tiltY.value()); in SendCallbackMsg()
182 info.SetSourceTool(touchPoint.sourceTool); in SendCallbackMsg()
183 info.SetPressedKeyCodes(touchPoint.pressedKeyCodes_); in SendCallbackMsg()
H A Draw_recognizer.cpp130 for (auto&& touchPoint : point.pointers) { in CreateTouchEventInfo()
131 TouchLocationInfo touchLocationInfo("onTouch", touchPoint.id); in CreateTouchEventInfo()
132 auto offset = Offset(touchPoint.x, touchPoint.y); in CreateTouchEventInfo()
135 .SetSize(touchPoint.size); in CreateTouchEventInfo()
136 touchLocationInfo.SetForce(touchPoint.force); in CreateTouchEventInfo()
137 if (touchPoint.tiltX.has_value()) { in CreateTouchEventInfo()
138 touchLocationInfo.SetTiltX(touchPoint.tiltX.value()); in CreateTouchEventInfo()
140 if (touchPoint.tiltY.has_value()) { in CreateTouchEventInfo()
141 touchLocationInfo.SetTiltY(touchPoint in CreateTouchEventInfo()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/gestures/recognizers/
H A Dclick_recognizer.cpp113 TouchEvent touchPoint = {}; in GetClickInfo() local
115 touchPoint = touchPoints_.begin()->second; in GetClickInfo()
117 ClickInfo info(touchPoint.id); in GetClickInfo()
118 PointF localPoint(touchPoint.GetOffset().GetX(), touchPoint.GetOffset().GetY()); in GetClickInfo()
120 isPostEventResult_, touchPoint.postEventNodeId); in GetClickInfo()
122 info.SetTimeStamp(touchPoint.time); in GetClickInfo()
123 info.SetScreenLocation(touchPoint.GetScreenOffset()); in GetClickInfo()
124 info.SetGlobalLocation(touchPoint.GetOffset()).SetLocalLocation(localOffset); in GetClickInfo()
128 info.SetForce(touchPoint in GetClickInfo()
166 TouchEvent touchPoint = {}; OnAccepted() local
439 TouchEvent touchPoint = {}; GetGestureEventInfo() local
507 TouchEvent touchPoint = {}; TriggerGestureJudgeCallback() local
[all...]
H A Drotation_recognizer.cpp342 TouchEvent touchPoint = {}; in SendCallbackMsg() local
344 touchPoint = touchPoints_.begin()->second; in SendCallbackMsg()
346 info.SetForce(touchPoint.force); in SendCallbackMsg()
347 if (touchPoint.tiltX.has_value()) { in SendCallbackMsg()
348 info.SetTiltX(touchPoint.tiltX.value()); in SendCallbackMsg()
350 if (touchPoint.tiltY.has_value()) { in SendCallbackMsg()
351 info.SetTiltY(touchPoint.tiltY.value()); in SendCallbackMsg()
359 info.SetSourceTool(touchPoint.sourceTool); in SendCallbackMsg()
360 info.SetPressedKeyCodes(touchPoint.pressedKeyCodes_); in SendCallbackMsg()
387 TouchEvent touchPoint in TriggerGestureJudgeCallback() local
[all...]
H A Dpan_recognizer.cpp689 TouchEvent touchPoint = {}; in GetGestureEventInfo() local
691 touchPoint = touchPoints_.begin()->second; in GetGestureEventInfo()
695 localPoint, GetAttachedNode(), false, isPostEventResult_, touchPoint.postEventNodeId); in GetGestureEventInfo()
696 info.SetRawGlobalLocation(GetRawGlobalLocation(touchPoint.postEventNodeId)); in GetGestureEventInfo()
697 info.SetPointerId(touchPoint.id); in GetGestureEventInfo()
698 info.SetTargetDisplayId(touchPoint.targetDisplayId); in GetGestureEventInfo()
699 info.SetIsInterpolated(touchPoint.isInterpolated); in GetGestureEventInfo()
700 info.SetInputXDeltaSlope(touchPoint.inputXDeltaSlope); in GetGestureEventInfo()
701 info.SetInputYDeltaSlope(touchPoint.inputYDeltaSlope); in GetGestureEventInfo()
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_component_id_ffi.cpp64 TouchEvent touchPoint; in GetTouchPointFromCJ() local
65 touchPoint.type = static_cast<TouchType>(cJTouchInfo.type); in GetTouchPointFromCJ()
66 touchPoint.id = cJTouchInfo.fingerId; in GetTouchPointFromCJ()
67 touchPoint.x = cJTouchInfo.localX; in GetTouchPointFromCJ()
68 touchPoint.y = cJTouchInfo.localY; in GetTouchPointFromCJ()
69 touchPoint.time = std::chrono::high_resolution_clock::now(); in GetTouchPointFromCJ()
70 return touchPoint; in GetTouchPointFromCJ()
111 TouchEvent touchPoint = GetTouchPointFromCJ(cJTouchInfo); in FfiOHOSAceFrameworkComponentIdSendTouchEvent() local
113 [pipelineContext, touchPoint]() { pipelineContext->OnTouchEvent(touchPoint); }, TaskExecuto in FfiOHOSAceFrameworkComponentIdSendTouchEvent()
[all...]
/foundation/arkui/ace_engine/test/unittest/core/manager/
H A Dselect_overlay_manager_test_ng.cpp106 bool CheckTouchInHostNode(const PointF& touchPoint) in CheckTouchInHostNode() argument
440 TouchEvent touchPoint; in HWTEST_F() local
441 selectOverlayManager->HandleGlobalEvent(touchPoint, ROOT_OFFSET); in HWTEST_F()
498 TouchEvent touchPoint; in HWTEST_F() local
499 selectOverlayManager_->HandleGlobalEvent(touchPoint, ROOT_OFFSET); in HWTEST_F()
547 TouchEvent touchPoint; in HWTEST_F() local
548 touchPoint.type = TouchType::DOWN; in HWTEST_F()
549 selectOverlayManager_->HandleGlobalEvent(touchPoint, OffsetF(0.0f, 0.0f)); in HWTEST_F()
550 EXPECT_NE(touchPoint.sourceType, SourceType::TOUCH); in HWTEST_F()
577 TouchEvent touchPoint; in HWTEST_F() local
607 TouchEvent touchPoint; HWTEST_F() local
637 TouchEvent touchPoint; HWTEST_F() local
669 TouchEvent touchPoint; HWTEST_F() local
705 TouchEvent touchPoint; HWTEST_F() local
739 TouchEvent touchPoint; HWTEST_F() local
771 TouchEvent touchPoint; HWTEST_F() local
805 TouchEvent touchPoint; HWTEST_F() local
840 TouchEvent touchPoint; HWTEST_F() local
873 TouchEvent touchPoint; HWTEST_F() local
905 TouchEvent touchPoint; HWTEST_F() local
938 TouchEvent touchPoint; HWTEST_F() local
969 TouchEvent touchPoint; HWTEST_F() local
1984 TouchEvent touchPoint; HWTEST_F() local
2033 TouchEvent touchPoint; HWTEST_F() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/event/
H A Devent_convertor.cpp69 TouchPoint touchPoint; in UpdateTouchEvent() local
70 touchPoint.size = event.size; in UpdateTouchEvent()
71 touchPoint.id = event.id; in UpdateTouchEvent()
72 touchPoint.force = event.force; in UpdateTouchEvent()
73 touchPoint.downTime = event.time; in UpdateTouchEvent()
74 touchPoint.x = event.x; in UpdateTouchEvent()
75 touchPoint.y = event.y; in UpdateTouchEvent()
76 touchPoint.screenX = event.screenX; in UpdateTouchEvent()
77 touchPoint.screenY = event.screenY; in UpdateTouchEvent()
78 touchPoint in UpdateTouchEvent()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/manager/select_overlay/
H A Dselect_overlay_manager.cpp271 const TouchEvent& touchPoint, const NG::OffsetF& rootOffset, bool isMousePressAtSelectedNode) in HandleGlobalEvent()
274 selectContentManager_->HandleGlobalEvent(touchPoint, rootOffset); in HandleGlobalEvent()
276 ResetSelection(touchPoint, isMousePressAtSelectedNode); in HandleGlobalEvent()
278 NG::PointF point { touchPoint.x - rootOffset.GetX(), touchPoint.y - rootOffset.GetY() }; in HandleGlobalEvent()
280 if (PreProcessTouchEvent(point, touchPoint)) { in HandleGlobalEvent()
284 if (touchPoint.type == TouchType::UP && touchPoint.sourceType == SourceType::TOUCH && acceptTouchUp) { in HandleGlobalEvent()
286 if (lastTouchDownPoint.id != touchPoint.id) { in HandleGlobalEvent()
295 if ((touchPoint in HandleGlobalEvent()
270 HandleGlobalEvent( const TouchEvent& touchPoint, const NG::OffsetF& rootOffset, bool isMousePressAtSelectedNode) HandleGlobalEvent() argument
304 PreProcessTouchEvent(const NG::PointF& point, const TouchEvent& touchPoint) PreProcessTouchEvent() argument
328 ResetSelection(const TouchEvent& touchPoint, bool isMousePressAtSelectedNode) ResetSelection() argument
[all...]
H A Dselect_overlay_manager.h73 const TouchEvent& touchPoint, const NG::OffsetF& rootOffset, bool isMousePressAtSelectedNode = false);
113 void ResetSelection(const TouchEvent& touchPoint, bool isMousePressAtSelectedNode);
129 bool PreProcessTouchEvent(const NG::PointF& point, const TouchEvent& touchPoint);
/foundation/arkui/ace_engine/frameworks/core/common/
H A Devent_manager.cpp39 void EventManager::TouchTest(const TouchEvent& touchPoint, const RefPtr<RenderNode>& renderNode, in TouchTest() argument
47 referee_->CleanGestureScope(touchPoint.id); in TouchTest()
50 const Point point { touchPoint.x, touchPoint.y, touchPoint.sourceType }; in TouchTest()
61 TouchTestResult prevHitTestResult = touchTestResults_[touchPoint.id]; in TouchTest()
64 touchTestResults_[touchPoint.id] = std::move(hitTestResult); in TouchTest()
67 void EventManager::TouchTest(const TouchEvent& touchPoint, const RefPtr<NG::FrameNode>& frameNode, in TouchTest() argument
75 FalsifyHoverCancelEventAndDispatch(touchPoint); in TouchTest()
79 const NG::PointF point { touchPoint in TouchTest()
113 CleanRefereeBeforeTouchTest(TouchEvent touchPoint, bool needAppend) CleanRefereeBeforeTouchTest() argument
141 LogTouchTestResultInfo(const TouchEvent& touchPoint, const RefPtr<NG::FrameNode>& frameNode, TouchRestrict& touchRestrict, const Offset& offset, float viewScale, bool needAppend) LogTouchTestResultInfo() argument
192 CheckRefereeStateAndReTouchTest(const TouchEvent& touchPoint, const RefPtr<NG::FrameNode>& frameNode, TouchRestrict& touchRestrict, const Offset& offset, float viewScale, bool needAppend) CheckRefereeStateAndReTouchTest() argument
243 RecordHitEmptyMessage( const TouchEvent& touchPoint, const std::string& resultInfo, const RefPtr<NG::FrameNode>& frameNode) RecordHitEmptyMessage() argument
324 PostEventTouchTest( const TouchEvent& touchPoint, const RefPtr<NG::UINode>& uiNode, TouchRestrict& touchRestrict) PostEventTouchTest() argument
466 HandleGlobalEvent(const TouchEvent& touchPoint, const RefPtr<TextOverlayManager>& textOverlayManager) HandleGlobalEvent() argument
498 HandleGlobalEventNG(const TouchEvent& touchPoint, const RefPtr<NG::SelectOverlayManager>& selectOverlayManager, const NG::OffsetF& rootOffset) HandleGlobalEventNG() argument
533 GetTouchTestIds(const TouchEvent& touchPoint, std::vector<std::string>& touchTestIds, bool& isMousePressAtSelectedNode, int32_t selectedNodeId) GetTouchTestIds() argument
2216 FalsifyCancelEventAndDispatch(const TouchEvent& touchPoint, bool sendOnTouch) FalsifyCancelEventAndDispatch() argument
2240 TouchTargetHitTest(const TouchEvent& touchPoint, const RefPtr<NG::FrameNode>& frameNode, TouchRestrict& touchRestrict, const Offset& offset, float viewScale, bool needAppend, const std::string& target) TouchTargetHitTest() argument
2260 FalsifyHoverCancelEventAndDispatch(const TouchEvent& touchPoint) FalsifyHoverCancelEventAndDispatch() argument
[all...]
H A Devent_manager.h75 void TouchTest(const TouchEvent& touchPoint, const RefPtr<RenderNode>& renderNode,
79 void TouchTest(const TouchEvent& touchPoint, const RefPtr<NG::FrameNode>& frameNode,
83 bool PostEventTouchTest(const TouchEvent& touchPoint, const RefPtr<NG::UINode>& uiNode,
119 void MouseTest(const MouseEvent& touchPoint, const RefPtr<RenderNode>& renderNode);
154 void HandleGlobalEvent(const TouchEvent& touchPoint, const RefPtr<TextOverlayManager>& textOverlayManager);
155 void HandleGlobalEventNG(const TouchEvent& touchPoint, const RefPtr<NG::SelectOverlayManager>& selectOverlayManager,
276 const TouchEvent& touchPoint, const std::string& resultInfo, const RefPtr<NG::FrameNode>& frameNode);
299 bool TouchTargetHitTest(const TouchEvent& touchPoint, const RefPtr<NG::FrameNode>& frameNode,
306 void GetTouchTestIds(const TouchEvent& touchPoint, std::vector<std::string>& touchTestIds,
309 void CleanRefereeBeforeTouchTest(TouchEvent touchPoint, boo
[all...]
/foundation/arkui/ace_engine/test/unittest/core/event/
H A Devent_manager_test_ng_new.cpp360 * @tc.steps: step2. Create FrameNode and Call TouchTest to add touchTestResults_[touchPoint.id]. in HWTEST_F()
361 * @tc.expected: touchTestResults_ has the touchPoint.id of instance. in HWTEST_F()
363 TouchEvent touchPoint; in HWTEST_F() local
364 touchPoint.id = 1000; in HWTEST_F()
365 touchPoint.type = TouchType::DOWN; in HWTEST_F()
372 eventManager->TouchTest(touchPoint, frameNode, touchRestrict, offset, 0, true); in HWTEST_F()
373 EXPECT_GT(eventManager->touchTestResults_.count(touchPoint.id), 0); in HWTEST_F()
377 eventManager->touchTestResults_.emplace(touchPoint.id, touchTestResults); in HWTEST_F()
385 eventManager->HandleGlobalEventNG(touchPoint, selectOverlayManager, rootOffset); in HWTEST_F()
1043 * @tc.steps: step2. Create FrameNode and Call TouchTest to add touchTestResults_[touchPoint in HWTEST_F()
1046 TouchEvent touchPoint; HWTEST_F() local
1122 TouchEvent touchPoint; HWTEST_F() local
1641 TouchEvent touchPoint; HWTEST_F() local
1717 TouchEvent touchPoint; HWTEST_F() local
1743 AxisEvent touchPoint; HWTEST_F() local
1779 KeyEvent touchPoint; HWTEST_F() local
1796 TouchEvent touchPoint; HWTEST_F() local
[all...]
H A Devent_manager_test_ng.cpp257 * @tc.expected: touchTestResults_ has the touchPoint.id of instance in HWTEST_F()
259 TouchEvent touchPoint; in HWTEST_F() local
260 touchPoint.id = 0; in HWTEST_F()
261 touchPoint.type = TouchType::DOWN; in HWTEST_F()
267 EXPECT_EQ(eventManager->touchTestResults_.count(touchPoint.id), 0); in HWTEST_F()
268 eventManager->TouchTest(touchPoint, frameNode, touchRestrict, offset, 0, false); in HWTEST_F()
269 EXPECT_GT(eventManager->touchTestResults_.count(touchPoint.id), 0); in HWTEST_F()
273 * @tc.expected: touchTestResults_ has the touchPoint.id of instance in HWTEST_F()
275 eventManager->touchTestResults_.erase(touchPoint.id); in HWTEST_F()
276 EXPECT_EQ(eventManager->touchTestResults_.count(touchPoint in HWTEST_F()
339 TouchEvent touchPoint; HWTEST_F() local
1109 TouchEvent touchPoint; HWTEST_F() local
[all...]
/foundation/arkui/ace_engine/adapter/ohos/entrance/
H A Dace_view_ohos.cpp284 TouchEvent touchPoint = ConvertTouchEvent(pointerEvent); in ProcessTouchEvent() local
285 touchPoint.SetIsInjected(isInjected); in ProcessTouchEvent()
287 ACE_SCOPED_TRACE("ProcessTouchEvent pointX=%f pointY=%f type=%d timeStamp=%lld id=%d eventId=%d", touchPoint.x, in ProcessTouchEvent()
288 touchPoint.y, (int)touchPoint.type, touchPoint.time.time_since_epoch().count(), touchPoint.id, in ProcessTouchEvent()
289 touchPoint.touchEventId); in ProcessTouchEvent()
291 auto markProcess = [touchPoint, finallyCallback = callback, enabled = pointerEvent->IsMarkEnabled()]() { in ProcessTouchEvent()
292 MMI::InputManager::GetInstance()->MarkProcessed(touchPoint in ProcessTouchEvent()
[all...]
H A Dmmi_event_convertor.cpp61 TouchPoint touchPoint; in ConvertTouchPoint() local
63 touchPoint.size = std::max(pointerItem.GetWidth(), pointerItem.GetHeight()) / 2.0; in ConvertTouchPoint()
64 touchPoint.id = pointerItem.GetPointerId(); in ConvertTouchPoint()
65 touchPoint.downTime = TimeStamp(std::chrono::microseconds(pointerItem.GetDownTime())); in ConvertTouchPoint()
66 touchPoint.x = pointerItem.GetWindowX(); in ConvertTouchPoint()
67 touchPoint.y = pointerItem.GetWindowY(); in ConvertTouchPoint()
68 touchPoint.screenX = pointerItem.GetDisplayX(); in ConvertTouchPoint()
69 touchPoint.screenY = pointerItem.GetDisplayY(); in ConvertTouchPoint()
70 touchPoint.isPressed = pointerItem.IsPressed(); in ConvertTouchPoint()
71 touchPoint in ConvertTouchPoint()
89 auto touchPoint = ConvertTouchPoint(item); UpdateTouchEvent() local
161 auto touchPoint = ConvertTouchPoint(item); ConvertTouchEvent() local
[all...]
/foundation/arkui/ace_engine/test/unittest/core/pipeline/
H A Dmock_event_manager.cpp22 void EventManager::TouchTest(const TouchEvent& touchPoint, const RefPtr<RenderNode>& renderNode, in TouchTest() argument
26 void EventManager::TouchTest(const TouchEvent& touchPoint, const RefPtr<NG::FrameNode>& frameNode, in TouchTest() argument
36 void EventManager::HandleGlobalEvent(const TouchEvent& touchPoint, const RefPtr<TextOverlayManager>& textOverlayManager) in HandleGlobalEvent() argument
39 void EventManager::HandleGlobalEventNG(const TouchEvent& touchPoint, in HandleGlobalEventNG() argument
/foundation/arkui/ace_engine/frameworks/core/components_ng/manager/select_content_overlay/
H A Dselect_overlay_callback.h96 virtual bool CheckTouchInHostNode(const PointF& touchPoint) = 0;
98 virtual void OnHandleGlobalEvent(const PointF& touchPoint, const PointF& localPoint, const TouchEvent& event) in OnHandleGlobalEvent() argument
114 downPointInfo_ = { touchPoint, event.id, event.GetOffset() }; in OnHandleGlobalEvent()
/foundation/arkui/ace_engine/frameworks/core/components_v2/pattern_lock/
H A Drender_pattern_lock.cpp29 Offset touchPoint; in RenderPatternLock()
30 touchPoint.SetX(moveDeltaX); in RenderPatternLock()
31 touchPoint.SetY(moveDeltaY); in RenderPatternLock()
32 patternLock->HandleCellTouchDown(touchPoint); in RenderPatternLock()
41 Offset touchPoint; in RenderPatternLock()
42 touchPoint.SetX(moveDeltaX); in RenderPatternLock()
43 touchPoint.SetY(moveDeltaY); in RenderPatternLock()
44 patternLock->HandleCellTouchMove(touchPoint); in RenderPatternLock()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/web/cross_platform/
H A Dweb_pattern.cpp949 for (auto& touchPoint : touchInfos) { in HandleTouchDown()
951 touchPoint.x -= webOffset_.GetX(); in HandleTouchDown()
952 touchPoint.y -= webOffset_.GetY(); in HandleTouchDown()
954 delegate_->HandleTouchDown(touchPoint.id, touchPoint.x, touchPoint.y, fromOverlay); in HandleTouchDown()
965 for (auto& touchPoint : touchInfos) { in HandleTouchUp()
967 touchPoint.x -= webOffset_.GetX(); in HandleTouchUp()
968 touchPoint.y -= webOffset_.GetY(); in HandleTouchUp()
970 delegate_->HandleTouchUp(touchPoint in HandleTouchUp()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/web/
H A Drender_web.cpp482 for (auto& touchPoint : touchInfos) { in HandleTouchDown()
484 touchPoint.x -= GetGlobalOffset().GetX(); in HandleTouchDown()
485 touchPoint.y -= GetGlobalOffset().GetY() + offsetFix_; in HandleTouchDown()
487 touchOffset = Offset(touchPoint.x, touchPoint.y); in HandleTouchDown()
488 delegate_->HandleTouchDown(touchPoint.id, touchPoint.x, touchPoint.y, fromOverlay); in HandleTouchDown()
507 for (auto& touchPoint : touchInfos) { in HandleTouchUp()
509 touchPoint in HandleTouchUp()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/web/
H A Dweb_pattern.cpp3319 for (auto& touchPoint : touchInfos) { in HandleTouchDown()
3321 touchPoint.x -= webOffset_.GetX(); in HandleTouchDown()
3322 touchPoint.y -= webOffset_.GetY(); in HandleTouchDown()
3324 "SelectOverlay touch down add id:%{public}d.", touchPoint.id); in HandleTouchDown()
3325 touchOverlayInfo_.push_back(touchPoint); in HandleTouchDown()
3327 delegate_->HandleTouchDown(touchPoint.id, touchPoint.x, touchPoint.y, fromOverlay); in HandleTouchDown()
3329 imageAnalyzerManager_->UpdateOverlayTouchInfo(touchPoint.x, touchPoint in HandleTouchDown()
3415 TouchInfo touchPoint; HandleTouchClickEventFromOverlay() local
3454 TouchInfo touchPoint; OnSelectHandleStart() local
3473 TouchInfo touchPoint; OnSelectHandleDone() local
3522 TouchInfo touchPoint; OnSelectHandleMove() local
[all...]
/foundation/CastEngine/castengine_cast_framework/common/src/
H A Dcast_engine_common_helper.cpp401 bool WriteTouchPoint(Parcel &parcel, const OHNativeXcomponentTouchPoint &touchPoint) in WriteTouchPoint() argument
403 return parcel.WriteInt32(touchPoint.id) && parcel.WriteFloat(touchPoint.screenX) && in WriteTouchPoint()
404 parcel.WriteFloat(touchPoint.screenY) && parcel.WriteFloat(touchPoint.x) && parcel.WriteFloat(touchPoint.y) && in WriteTouchPoint()
405 parcel.WriteUint32(static_cast<uint32_t>(touchPoint.type)) && parcel.WriteDouble(touchPoint.size) && in WriteTouchPoint()
406 parcel.WriteFloat(touchPoint.force) && parcel.WriteInt64(touchPoint in WriteTouchPoint()
[all...]
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dnode_gesture_modifier.cpp207 for (auto& touchPoint : touchPointes) { in ConvertTouchPointsToPoints()
211 points[i].id = touchPoint.id; in ConvertTouchPointsToPoints()
216 points[i].screenX = touchPoint.screenX; in ConvertTouchPointsToPoints()
217 points[i].screenY = touchPoint.screenY; in ConvertTouchPointsToPoints()
218 points[i].contactAreaWidth = touchPoint.size; in ConvertTouchPointsToPoints()
219 points[i].contactAreaHeight = touchPoint.size; in ConvertTouchPointsToPoints()
220 points[i].pressure = touchPoint.force; in ConvertTouchPointsToPoints()
221 points[i].tiltX = touchPoint.tiltX.value_or(0.0f); in ConvertTouchPointsToPoints()
222 points[i].tiltY = touchPoint.tiltY.value_or(0.0f); in ConvertTouchPointsToPoints()
223 points[i].pressedTime = touchPoint in ConvertTouchPointsToPoints()
[all...]

Completed in 30 milliseconds

123