Home
last modified time | relevance | path

Searched refs:GetTouches (Results 1 – 25 of 91) sorted by relevance

1234

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/
H A Dtext_base.cpp137 if (info.GetTouches().empty()) { in DoGestureSelection()
140 auto touchType = info.GetTouches().front().GetTouchType(); in DoGestureSelection()
160 if (!isStarted_ || info.GetTouches().empty()) { in DoTextSelectionTouchMove()
163 auto localOffset = info.GetTouches().front().GetLocalLocation(); in DoTextSelectionTouchMove()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/event/
H A Ddrag_event_test_ng_property_config.cpp167 auto point = Point(info.GetTouches().front().GetGlobalLocation().GetX(),
168 info.GetTouches().front().GetGlobalLocation().GetY());
169 dragDropManager->SetDraggingPointer(info.GetTouches().front().GetFingerId());
171 dragEventActuator->HandleDragDampingMove(point, info.GetTouches().front().GetFingerId());
174 EXPECT_FALSE(!dragDropManager->IsSameDraggingPointer(info.GetTouches().front().GetFingerId()));
181 dragEventActuator->HandleDragDampingMove(point, info.GetTouches().front().GetFingerId());
191 dragEventActuator->HandleDragDampingMove(point, info.GetTouches().front().GetFingerId());
203 dragEventActuator->HandleDragDampingMove(point, info.GetTouches().front().GetFingerId());
211 dragEventActuator->HandleDragDampingMove(point, info.GetTouches().front().GetFingerId());
789 …info.GetTouches().front().GetGlobalLocation().GetX(), info.GetTouches().front().GetGlobalLocation(…
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/indexer/
H A Drender_indexer.cpp238 if (info.GetTouches().empty()) { in HandleTouchDown()
241 touchPostion_ = info.GetTouches().front().GetLocalLocation(); in HandleTouchDown()
249 if (!info.GetTouches().empty()) { in HandleTouchUp()
250 touchPostion_ = info.GetTouches().front().GetLocalLocation(); in HandleTouchUp()
261 if (info.GetTouches().empty()) { in HandleTouchMove()
264 touchPostion_ = info.GetTouches().front().GetLocalLocation(); in HandleTouchMove()
H A Drender_indexer_circle.cpp191 if (info.GetTouches().empty()) { in HandleTouchDown()
194 Offset position = info.GetTouches().front().GetLocalLocation(); in HandleTouchDown()
250 if (info.GetTouches().empty()) { in HandleTouchMove()
253 Offset position = info.GetTouches().front().GetLocalLocation(); in HandleTouchMove()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/indexer/
H A Drender_indexer.cpp226 if (info.GetTouches().empty()) { in HandleTouchDown()
230 touchPostion_ = info.GetTouches().front().GetLocalLocation(); in HandleTouchDown()
247 if (info.GetTouches().empty()) { in HandleTouchUp()
251 touchPostion_ = info.GetTouches().front().GetLocalLocation(); in HandleTouchUp()
266 if (info.GetTouches().empty()) { in HandleTouchMove()
270 touchPostion_ = info.GetTouches().front().GetLocalLocation(); in HandleTouchMove()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/pattern_lock/
H A Drender_pattern_lock.cpp30 if (patternLock && !info.GetTouches().empty()) { in RenderPatternLock()
31 const auto& locationInfo = info.GetTouches().front(); in RenderPatternLock()
42 if (patternLock && !info.GetTouches().empty()) { in RenderPatternLock()
43 const auto& locationInfo = info.GetTouches().front(); in RenderPatternLock()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/drag_bar/
H A Drender_drag_bar.cpp240 if (dragBar && !info.GetTouches().empty()) { in InitializeRecognizer()
241 dragBar->HandleTouchDown(info.GetTouches().front().GetGlobalLocation()); in InitializeRecognizer()
246 if (dragBar && !info.GetTouches().empty()) { in InitializeRecognizer()
247 dragBar->HandleTouchMove(info.GetTouches().front().GetGlobalLocation()); in InitializeRecognizer()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/rich_text/
H A Drender_rich_text.cpp33 sp->prevPos_ = info.GetTouches().front().GetLocalLocation().GetY(); in RenderRichText()
46 sp->ProcessMove(info.GetTouches().front().GetLocalLocation().GetY()); in RenderRichText()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/panel/
H A Ddrag_bar_pattern.cpp281 if (info.GetTouches().empty()) { in HandleTouchEvent()
284 auto touchType = info.GetTouches().front().GetTouchType(); in HandleTouchEvent()
285 auto frontInfo = info.GetTouches().front(); in HandleTouchEvent()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/text/
H A Drender_text.cpp339 if (text && !info.GetTouches().empty()) { in OnTouchTestHit()
341 info.GetTouches().front().GetLocalLocation() - text->GetGlobalOffset()); in OnTouchTestHit()
347 if (text && !info.GetTouches().empty()) { in OnTouchTestHit()
349 info.GetTouches().front().GetLocalLocation() - text->GetGlobalOffset()); in OnTouchTestHit()
355 if (text && !info.GetTouches().empty()) { in OnTouchTestHit()
357 … GestureType::TOUCH_END, info.GetTouches().front().GetLocalLocation() - text->GetGlobalOffset()); in OnTouchTestHit()
363 if (text && !info.GetTouches().empty()) { in OnTouchTestHit()
365 info.GetTouches().front().GetLocalLocation() - text->GetGlobalOffset()); in OnTouchTestHit()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/button/
H A Dtoggle_button_pattern.cpp189 if (info.GetTouches().front().GetTouchType() == TouchType::DOWN) { in InitTouchEvent()
193 if (info.GetTouches().front().GetTouchType() == TouchType::UP || in InitTouchEvent()
194 info.GetTouches().front().GetTouchType() == TouchType::CANCEL) { in InitTouchEvent()
H A Dbutton_pattern.cpp233 if (info.GetTouches().front().GetTouchType() == TouchType::DOWN) { in InitTouchEvent()
237 if (info.GetTouches().front().GetTouchType() == TouchType::UP || in InitTouchEvent()
238 info.GetTouches().front().GetTouchType() == TouchType::CANCEL) { in InitTouchEvent()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/rich_editor/
H A Drich_editor_pattern_testthree_ng.cpp511 auto touchInfo = touchEventInfo.GetTouches().front();
531 auto touchInfo = touchEventInfo.GetTouches().front();
551 auto touchInfo = touchEventInfo.GetTouches().front();
571 auto touchInfo = touchEventInfo.GetTouches().front();
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/overlay/
H A Dsheet_drag_bar_pattern.cpp176 auto touchType = info.GetTouches().front().GetTouchType(); in HandleTouchEvent()
177 auto frontInfo = info.GetTouches().front(); in HandleTouchEvent()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/stepper/
H A Drender_stepper.cpp909 if (info.GetTouches().empty()) { in HandleTouchDown()
912 const auto& locationInfo = info.GetTouches().front(); in HandleTouchDown()
936 if (!info.GetTouches().empty()) { in HandleTouchUp()
937 fingerId = info.GetTouches().front().GetFingerId(); in HandleTouchUp()
954 if (info.GetTouches().empty()) { in HandleTouchMove()
957 const auto& locationInfo = info.GetTouches().front(); in HandleTouchMove()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/tool_bar/
H A Drender_tool_bar_item.cpp69 if (info.GetTouches().empty()) { in HandleMoveEvent()
72 const auto& locationInfo = info.GetTouches().front(); in HandleMoveEvent()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/picker/
H A Ddatepicker_column_pattern.cpp140 if (info.GetTouches().front().GetTouchType() == TouchType::DOWN) { in ParseTouchListener()
141 … pattern->SetLocalDownDistance(info.GetTouches().front().GetLocalLocation().GetDistance()); in ParseTouchListener()
144 if (info.GetTouches().front().GetTouchType() == TouchType::UP || in ParseTouchListener()
145 info.GetTouches().front().GetTouchType() == TouchType::CANCEL) { in ParseTouchListener()
149 if (info.GetTouches().front().GetTouchType() == TouchType::MOVE) { in ParseTouchListener()
150 …if (std::abs(info.GetTouches().front().GetLocalLocation().GetDistance() - pattern->GetLocalDownDis… in ParseTouchListener()
224 if (info.GetTouches().front().GetTouchType() == TouchType::DOWN) { in CreateItemTouchEventListener()
237 if (info.GetTouches().front().GetTouchType() == TouchType::UP) { in CreateItemTouchEventListener()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/checkable/
H A Drender_checkable.cpp159 if (info.GetTouches().empty()) { in InitTouchRecognizer()
162 const auto& locationInfo = info.GetTouches().front(); in InitTouchRecognizer()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/toggle/
H A Drender_toggle.cpp104 if (!isMoveEventValid_ || info.GetTouches().empty()) { in HandleMoveEvent()
107 const auto& locationInfo = info.GetTouches().front(); in HandleMoveEvent()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/time_picker/
H A Dtimepicker_column_pattern.cpp208 if (info.GetTouches().front().GetTouchType() == TouchType::DOWN) { in ParseTouchListener()
210 … pattern->SetLocalDownDistance(info.GetTouches().front().GetLocalLocation().GetDistance()); in ParseTouchListener()
212 if (info.GetTouches().front().GetTouchType() == TouchType::UP || in ParseTouchListener()
213 info.GetTouches().front().GetTouchType() == TouchType::CANCEL) { in ParseTouchListener()
217 if (info.GetTouches().front().GetTouchType() == TouchType::MOVE) { in ParseTouchListener()
218 …if (std::abs(info.GetTouches().front().GetLocalLocation().GetDistance() - pattern->GetLocalDownDis… in ParseTouchListener()
295 if (info.GetTouches().front().GetTouchType() == TouchType::DOWN) { in CreateItemTouchEventListener()
308 if (info.GetTouches().front().GetTouchType() == TouchType::UP) { in CreateItemTouchEventListener()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/bubble/
H A Dbubble_pattern.cpp168 if (info.GetTouches().empty()) { in HandleTouchEvent()
171 auto touchType = info.GetTouches().front().GetTouchType(); in HandleTouchEvent()
172 auto clickPos = info.GetTouches().front().GetLocalLocation(); in HandleTouchEvent()
304 auto touchType = info.GetTouches().front().GetTouchType(); in ButtonOnPress()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/select_popup/
H A Drender_select_popup.cpp33 selectPopup->HandleRawEvent(info.GetTouches().front().GetLocalLocation()); in RenderSelectPopup()
413 auto touches = info.GetTouches(); in ProcessTouchDown()
431 auto touches = info.GetTouches(); in ProcessTouchUp()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll/inner/
H A Dscroll_bar.cpp357 if (info.GetTouches().empty()) { in SetGestureEvent()
360 auto touch = info.GetTouches().front(); in SetGestureEvent()
379 if ((info.GetTouches().front().GetTouchType() == TouchType::UP || in SetGestureEvent()
380 info.GetTouches().front().GetTouchType() == TouchType::CANCEL) && in SetGestureEvent()
381 (info.GetTouches().size() <= 1)) { in SetGestureEvent()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/calendar/
H A Dcalendar_month_pattern.cpp240 if (info.GetTouches().front().GetTouchType() == TouchType::DOWN) { in InitTouchEvent()
241 calendarPattern->OnTouchEvent(info.GetTouches().front().GetLocalLocation(), true); in InitTouchEvent()
243 if (info.GetTouches().front().GetTouchType() == TouchType::UP || in InitTouchEvent()
244 info.GetTouches().front().GetTouchType() == TouchType::CANCEL) { in InitTouchEvent()
245 calendarPattern->OnTouchEvent(info.GetTouches().front().GetLocalLocation(), false); in InitTouchEvent()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/toggle/
H A Dswitch_pattern.cpp389 if (info.GetTouches().front().GetTouchType() == TouchType::DOWN) { in InitTouchEvent()
392 if (info.GetTouches().front().GetTouchType() == TouchType::UP || in InitTouchEvent()
393 info.GetTouches().front().GetTouchType() == TouchType::CANCEL) { in InitTouchEvent()

1234