Home
last modified time | relevance | path

Searched refs:targetOffset (Results 1 – 25 of 45) sorted by relevance

12

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/overlay/
H A Dsheet_presentation_layout_algorithm.cpp254 auto targetOffset = targetNode->GetPaintRectOffset(); in GetPopupStyleSheetOffset() local
255 return GetOffsetInAvoidanceRule(targetSize, targetOffset); in GetPopupStyleSheetOffset()
262 auto targetPlacement = AvoidanceRuleOfPlacement(placement, targetSize, targetOffset); in GetOffsetInAvoidanceRule()
269 return (this->*offsetFunc)(targetSize, targetOffset); in GetOffsetInAvoidanceRule()
285 if ((this->*placementFunc)(targetSize, targetOffset)) { in AvoidanceRuleOfPlacement()
299 if ((this->*placementFunc)(targetSize, targetOffset)) { in AvoidanceRuleOfPlacement()
332 return LessOrEqual(WINDOW_EDGE_SPACE.ConvertToPx(), targetOffset.GetX()) && in CheckPlacementBottomLeft()
349 targetOffset.GetY() + targetSize.Height() + SHEET_TARGET_SPACE.ConvertToPx()); in GetOffsetWithBottom()
356 …OffsetF(targetOffset.GetX(), targetOffset.GetY() + targetSize.Height() + SHEET_TARGET_SPACE.Conver… in GetOffsetWithBottomLeft()
378 auto sheetOffset = OffsetF(targetOffset.GetX() + targetSize.Width() - sheetWidth_, in GetOffsetWithBottomRight()
[all …]
H A Dsheet_presentation_layout_algorithm.h94 OffsetF GetOffsetInAvoidanceRule(const SizeF& targetSize, const OffsetF& targetOffset);
96 const Placement& currentPlacement, const SizeF& targetSize, const OffsetF& targetOffset);
/ohos5.0/foundation/ability/ability_runtime/interfaces/inner_api/auto_fill_manager/src/
H A Dauto_fill_manager_util.cpp40 if (config.targetOffset.has_value()) { in ConvertToPopupUIExtensionConfig()
42 AutoFill::PopupOffset targetOffset = config.targetOffset.value(); in ConvertToPopupUIExtensionConfig() local
43 popupOffset.unit = ConvertPopupUnit(targetOffset.unit); in ConvertToPopupUIExtensionConfig()
44 popupOffset.deltaX = static_cast<double>(targetOffset.deltaX); in ConvertToPopupUIExtensionConfig()
45 popupOffset.deltaY = static_cast<double>(targetOffset.deltaY); in ConvertToPopupUIExtensionConfig()
46 popupConfig.targetOffset = popupOffset; in ConvertToPopupUIExtensionConfig()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/functions/
H A Djs_swiper_function.cpp129 float targetOffset = animationCallbackInfo.targetOffset.value_or(0.0f); in Execute() local
133 obj->SetProperty<float>("targetOffset", targetOffset); in Execute()
148 float targetOffset = animationCallbackInfo.targetOffset.value_or(0.0f); in Execute() local
152 obj->SetProperty<float>("targetOffset", targetOffset); in Execute()
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/
H A Dmesh_builder.cpp1738 uint32_t targetOffset = baseOffset + targetSize; in GatherDeltasP() local
1744 submesh.morphTargets[trg].offset = targetOffset; in GatherDeltasP()
1758 targetOffset += sizeof(MorphInputData); in GatherDeltasP()
1770 submesh.morphTargets[trg].offset = targetOffset; in GatherDeltasP()
1787 targetOffset += sizeof(MorphInputData); in GatherDeltasP()
1830 uint32_t targetOffset = baseOffset + targetSize; in GatherDeltasPN() local
1852 targetOffset += sizeof(MorphInputData); in GatherDeltasPN()
1892 targetOffset += sizeof(MorphInputData); in GatherDeltasPN()
1959 uint32_t targetOffset = baseOffset + targetSize; in GatherDeltasPNT() local
1984 targetOffset += sizeof(MorphInputData); in GatherDeltasPNT()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/refresh/
H A Drefresh_pattern.cpp798 auto targetOffset = (isSourceFromAnimation_ || in SpeedTriggerAnimation() local
803 if (!NearEqual(scrollOffset_, targetOffset)) { in SpeedTriggerAnimation()
804 dealSpeed = speed / (targetOffset - scrollOffset_); in SpeedTriggerAnimation()
810 } else if (NearZero(targetOffset)) { in SpeedTriggerAnimation()
823 pattern->offsetProperty_->Set(targetOffset); in SpeedTriggerAnimation()
842 auto targetOffset = 0.0f; in GetTargetOffset() local
846 targetOffset = refreshOffset_.ConvertToPx(); in GetTargetOffset()
849 targetOffset = 0.0f; in GetTargetOffset()
852 return targetOffset; in GetTargetOffset()
/ohos5.0/foundation/arkui/ace_engine/interfaces/inner_api/ace/
H A Dpopup_ui_extension_config.h74 std::optional<PopupOffset> targetOffset; member
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dpopup_param.h294 void SetTargetOffset(const Offset& targetOffset) in SetTargetOffset() argument
296 targetOffset_ = targetOffset; in SetTargetOffset()
/ohos5.0/foundation/ability/ability_runtime/interfaces/inner_api/auto_fill_manager/include/
H A Dauto_fill_custom_config.h77 std::optional<PopupOffset> targetOffset; member
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/wrapper/
H A Dmenu_wrapper_pattern.h385 dumpInfo_.targetOffset = dumpInfo.targetOffset; in SetDumpInfo()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/indexer/
H A Drender_indexer_circle.h105 void BeginCollapseScrollAnimation(double originOffset, double targetOffset);
H A Drender_indexer_circle.cpp510 void RenderIndexerCircle::BeginCollapseScrollAnimation(double originOffset, double targetOffset) in BeginCollapseScrollAnimation() argument
528 InitCollapseScrollInterpolator(originOffset, targetOffset); in BeginCollapseScrollAnimation()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/
H A Dlist_pattern.h50 float targetOffset; member
274 bool OnScrollSnapCallback(double targetOffset, double velocity) override;
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/tabs/
H A Dtab_bar_test_ng.cpp797 float targetOffset = 0.3f; variable
798 tabBarPattern_->PlayTabBarTranslateAnimation(option, targetOffset);
819 float targetOffset = 0.3f; variable
820 …attern_->PlayIndicatorTranslateAnimation(option, originalPaintRect, targetPaintRect, targetOffset);
823 targetOffset = -0.2f;
824 …attern_->PlayIndicatorTranslateAnimation(option, originalPaintRect, targetPaintRect, targetOffset);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/
H A Dtab_bar_pattern.cpp2298 RectF targetPaintRect, float targetOffset) in PlayIndicatorTranslateAnimation() argument
2383 auto targetOffset = 0.0f; in TriggerTranslateAnimation() local
2385 targetOffset = CalculateTargetOffset(targetIndex); in TriggerTranslateAnimation()
2386 PlayTabBarTranslateAnimation(option, targetOffset); in TriggerTranslateAnimation()
2406 PlayIndicatorTranslateAnimation(option, originalPaintRect, targetPaintRect, targetOffset); in TriggerTranslateAnimation()
2411 auto targetOffset = 0.0f; in CalculateTargetOffset() local
2423 targetOffset = isRTL_ && axis_ == Axis::HORIZONTAL ? (startPos - scrollMargin_) in CalculateTargetOffset()
2426 targetOffset = isRTL_ && axis_ == Axis::HORIZONTAL ? (startPos - frontChildrenMainSize) in CalculateTargetOffset()
2430 CHECK_NULL_RETURN(host, targetOffset); in CalculateTargetOffset()
2435targetOffset = isRTL_ && axis_ == Axis::HORIZONTAL ? (startPos - space) : (space - startPos); in CalculateTargetOffset()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/bubble/
H A Dbubble_layout_algorithm.cpp223 const std::optional<OffsetF>& targetOffset, const std::optional<SizeF>& targetSize) in BubbleLayoutAlgorithm() argument
226 if (targetOffset.has_value()) { in BubbleLayoutAlgorithm()
227 targetOffset_ = targetOffset.value(); in BubbleLayoutAlgorithm()
305 auto targetOffset = targetNode->GetPaintRectOffset(); in Measure() local
315 … if (childWidth + targetOffset.GetX() + targetSize.Width() + scaledBubbleSpacing <= rootW && in Measure()
316 targetOffset.GetX() - childWidth - scaledBubbleSpacing >= 0) { in Measure()
323 … if (childHeight + targetOffset.GetY() + targetSize.Height() + scaledBubbleSpacing <= rootH && in Measure()
324 targetOffset.GetY() - childHeight - scaledBubbleSpacing >= 0) { in Measure()
327 …constrainHeight = std::max(rootH - targetOffset.GetY() - targetSize.Height() - scaledBubbleSpacing, in Measure()
328 targetOffset.GetY() - scaledBubbleSpacing); in Measure()
H A Dbubble_layout_algorithm.h41 …ithm(int32_t id, const std::string& tag, const std::optional<OffsetF>& targetOffset = std::nullopt,
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/
H A Dswiper_model.h77 std::optional<float> targetOffset; member
/ohos5.0/foundation/ability/ability_runtime/test/unittest/auto_fill_manager_util_test/
H A Dauto_fill_manager_util_test.cpp109 EXPECT_TRUE(popupConfig.targetOffset.has_value());
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/overlay/
H A Dsheet_coverage_test_ng.cpp1427 OffsetF targetOffset(WINDOW_EDGE_SPACE.ConvertToPx() - 1.0f, 1.0f); variable
1428 EXPECT_FALSE(algorithm->CheckPlacementBottomLeft(SizeF(), targetOffset));
1429 algorithm->AvoidanceRuleOfPlacement(Placement::BOTTOM, SizeF(), targetOffset);
1431 targetOffset.x_ = WINDOW_EDGE_SPACE.ConvertToPx() + 1.0f;
1434 EXPECT_TRUE(algorithm->CheckPlacementBottomLeft(SizeF(), targetOffset));
1435 algorithm->AvoidanceRuleOfPlacement(Placement::BOTTOM, SizeF(), targetOffset);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/pipeline/base/
H A Drender_node.cpp1810 const Offset targetOffset = targetNode->GetTransitionGlobalOffset(); in CreateGeometryTransitionFrom() local
1821 paintX_.MoveTo(targetOffset.GetX()); in CreateGeometryTransitionFrom()
1822 paintY_.MoveTo(targetOffset.GetY()); in CreateGeometryTransitionFrom()
1876 const Offset targetOffset = targetNode->GetGlobalOffset(); in CreateGeometryTransitionTo() local
1923 paintX_ = AnimatableDimension(targetOffset.GetX()); in CreateGeometryTransitionTo()
1924 paintY_ = AnimatableDimension(targetOffset.GetY()); in CreateGeometryTransitionTo()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll/
H A Dscroll_pattern.h373 bool OnScrollSnapCallback(double targetOffset, double velocity) override;
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/bubble/
H A Dbubble_test_ng.cpp2026 auto targetOffset = bubbleLayoutAlgorithm->targetOffset_; variable
2027 EXPECT_EQ(targetOffset, OffsetF(0.0f, 0.0f));
2151 auto targetOffset = layoutAlgorithm->targetOffset_ = OffsetF(POSITION_OFFSET, POSITION_OFFSET); variable
2153 …OffsetF bottomPosition = OffsetF(targetOffset.GetX() + (targetSize.Width() - childSize.Width()) / …
2154 targetOffset.GetY() + targetSize.Height());
2155 …OffsetF topPosition = OffsetF(targetOffset.GetX() + (targetSize.Width() - childSize.Width()) / 2.0,
2156 targetOffset.GetY() - childSize.Height());
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/
H A Dmenu_layout_algorithm.h39 OffsetF targetOffset; member
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scrollable/
H A Dscrollable.h60 using ScrollSnapCallback = std::function<bool(double targetOffset, double velocity)>;

12