Home
last modified time | relevance | path

Searched refs:touchPosition (Results 1 – 11 of 11) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/option/
H A Drender_option.cpp588 auto touchPosition = touches.front().GetLocalLocation(); in ProcessTouchDown() local
589 if (!optionRegion_.ContainsInRegion(touchPosition.GetX(), touchPosition.GetY())) { in ProcessTouchDown()
593 firstTouchDownOffset_ = touchPosition; in ProcessTouchDown()
609 auto touchPosition = touches.front().GetLocalLocation(); in ProcessTouchUp() local
610 firstTouchUpOffset_ = touchPosition; in ProcessTouchUp()
611 if (optionRegion_.ContainsInRegion(touchPosition.GetX(), touchPosition.GetY()) && in ProcessTouchUp()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/slider/
H A Drender_slider.cpp536 void RenderSlider::RenderBlockPosition(const Offset& touchPosition) in RenderBlockPosition() argument
540 …diff = isReverse_ ? GetLayoutSize().Height() - touchPosition.GetY() - NormalizeToPx(SLIDER_PADDING… in RenderBlockPosition()
541 touchPosition.GetY() - NormalizeToPx(SLIDER_PADDING_DP); in RenderBlockPosition()
545 diff = touchPosition.GetX() - NormalizeToPx(SLIDER_PADDING_DP); in RenderBlockPosition()
548 … diff = GetLayoutSize().Width() - touchPosition.GetX() - NormalizeToPx(SLIDER_PADDING_DP); in RenderBlockPosition()
579 void RenderSlider::UpdateBlockPosition(const Offset& touchPosition, bool isClick) in UpdateBlockPosition() argument
587 …diff = isReverse_ ? GetLayoutSize().Height() - touchPosition.GetY() - NormalizeToPx(SLIDER_PADDING… in UpdateBlockPosition()
588 touchPosition.GetY() - NormalizeToPx(SLIDER_PADDING_DP); in UpdateBlockPosition()
592 diff = touchPosition.GetX() - NormalizeToPx(SLIDER_PADDING_DP); in UpdateBlockPosition()
595 … diff = GetLayoutSize().Width() - touchPosition.GetX() - NormalizeToPx(SLIDER_PADDING_DP); in UpdateBlockPosition()
H A Drender_slider.h245 void RenderBlockPosition(const Offset& touchPosition);
246 void UpdateBlockPosition(const Offset& touchPosition, bool isAnimation);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/indexer/
H A Drender_indexer.h62 virtual int32_t GetTouchedItemIndex(const Offset& touchPosition);
114 void HandleTouched(const Offset& touchPosition);
H A Drender_indexer.cpp316 void RenderIndexer::HandleTouched(const Offset& touchPosition) in HandleTouched() argument
318 int32_t index = GetTouchedItemIndex(touchPosition); in HandleTouched()
324 int32_t RenderIndexer::GetTouchedItemIndex(const Offset& touchPosition) in GetTouchedItemIndex() argument
326 double position = touchPosition.GetY(); in GetTouchedItemIndex()
H A Drender_indexer_circle.cpp270 int32_t RenderIndexerCircle::GetTouchedItemIndex(const Offset& touchPosition) in GetTouchedItemIndex() argument
277 …double touchAngle = atan2(touchPosition.GetY() - outerRadius_, touchPosition.GetX() - outerRadius_… in GetTouchedItemIndex()
278 if (touchPosition.GetY() - outerRadius_ < 0.0) { in GetTouchedItemIndex()
H A Drender_indexer_circle.h47 int32_t GetTouchedItemIndex(const Offset& touchPosition) override;
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/indexer/
H A Drender_indexer.h67 virtual int32_t GetTouchedItemIndex(const Offset& touchPosition);
138 void HandleTouched(const Offset& touchPosition);
H A Drender_indexer.cpp354 void RenderIndexer::HandleTouched(const Offset& touchPosition) in HandleTouched() argument
356 int32_t index = GetTouchedItemIndex(touchPosition); in HandleTouched()
362 int32_t RenderIndexer::GetTouchedItemIndex(const Offset& touchPosition) in GetTouchedItemIndex() argument
364 double position = touchPosition.GetY(); in GetTouchedItemIndex()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/text/
H A Drender_text.h177 void HandleTouchEvent(GestureType type, const Offset& touchPosition);
H A Drender_text.cpp747 void RenderText::HandleTouchEvent(GestureType type, const Offset& touchPosition) in HandleTouchEvent() argument
750 touchStartPosition_ = GetTouchPosition(touchPosition); in HandleTouchEvent()