/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/overlay/ |
H A D | sheet_wrapper_paint_method.cpp | 94 auto targetOffset = sheetNode->GetPositionToParentWithTransform(); in GetBorderDrawPath() local 101 targetOffset.GetX() - borderOffset, SHEET_ARROW_HEIGHT.ConvertToPx() + sheetRadius + targetOffset.GetY()); in GetBorderDrawPath() 102 path.ArcTo(borderRadius, borderRadius, 0.0f, RSPathDirection::CW_DIRECTION, sheetRadius + targetOffset.GetX(), in GetBorderDrawPath() 103 SHEET_ARROW_HEIGHT.ConvertToPx() + targetOffset.GetY() - borderOffset); in GetBorderDrawPath() 104 path.LineTo(arrowOffset - ARROW_VERTICAL_P1_OFFSET_X.ConvertToPx() + targetOffset.GetX(), in GetBorderDrawPath() 105 SHEET_ARROW_HEIGHT.ConvertToPx() + targetOffset.GetY() - borderOffset); // P1 in GetBorderDrawPath() 106 path.LineTo(arrowOffset - ARROW_VERTICAL_P2_OFFSET_X.ConvertToPx() + targetOffset.GetX() - borderOffset, in GetBorderDrawPath() 107 SHEET_ARROW_HEIGHT.ConvertToPx() - ARROW_VERTICAL_P2_OFFSET_Y.ConvertToPx() + targetOffset.GetY()); // P2 in GetBorderDrawPath() 110 arrowOffset + ARROW_VERTICAL_P4_OFFSET_X.ConvertToPx() + targetOffset in GetBorderDrawPath() [all...] |
H A D | sheet_presentation_layout_algorithm.cpp | 196 auto targetOffset = targetNode->GetPaintRectOffset(); in GetPopupStyleSheetOffset() local 197 return GetOffsetInAvoidanceRule(targetSize, targetOffset); in GetPopupStyleSheetOffset() 200 OffsetF SheetPresentationLayoutAlgorithm::GetOffsetInAvoidanceRule(const SizeF& targetSize, const OffsetF& targetOffset) in GetOffsetInAvoidanceRule() argument 204 auto targetPlacement = AvoidanceRuleOfPlacement(placement, targetSize, targetOffset); in GetOffsetInAvoidanceRule() 211 return (this->*offsetFunc)(targetSize, targetOffset); in GetOffsetInAvoidanceRule() 215 const Placement& currentPlacement, const SizeF& targetSize, const OffsetF& targetOffset) in AvoidanceRuleOfPlacement() 227 if ((this->*placementFunc)(targetSize, targetOffset)) { in AvoidanceRuleOfPlacement() 241 if ((this->*placementFunc)(targetSize, targetOffset)) { in AvoidanceRuleOfPlacement() 251 bool SheetPresentationLayoutAlgorithm::CheckDirectionBottom(const SizeF& targetSize, const OffsetF& targetOffset) in CheckDirectionBottom() argument 258 bool SheetPresentationLayoutAlgorithm::CheckPlacementBottom(const SizeF& targetSize, const OffsetF& targetOffset) in CheckPlacementBottom() argument 214 AvoidanceRuleOfPlacement( const Placement& currentPlacement, const SizeF& targetSize, const OffsetF& targetOffset) AvoidanceRuleOfPlacement() argument 270 CheckPlacementBottomLeft(const SizeF& targetSize, const OffsetF& targetOffset) CheckPlacementBottomLeft() argument 278 CheckPlacementBottomRight(const SizeF& targetSize, const OffsetF& targetOffset) CheckPlacementBottomRight() argument 287 GetOffsetWithBottom(const SizeF& targetSize, const OffsetF& targetOffset) GetOffsetWithBottom() argument 294 GetOffsetWithBottomLeft(const SizeF& targetSize, const OffsetF& targetOffset) GetOffsetWithBottomLeft() argument 315 GetOffsetWithBottomRight(const SizeF& targetSize, const OffsetF& targetOffset) GetOffsetWithBottomRight() argument [all...] |
H A D | sheet_presentation_layout_algorithm.h | 92 OffsetF GetOffsetInAvoidanceRule(const SizeF& targetSize, const OffsetF& targetOffset); 94 const Placement& currentPlacement, const SizeF& targetSize, const OffsetF& targetOffset);
|
/foundation/ability/ability_runtime/interfaces/inner_api/auto_fill_manager/src/ |
H A D | auto_fill_manager_util.cpp | 41 if (config.targetOffset.has_value()) { in ConvertToPopupUIExtensionConfig() 43 AutoFill::PopupOffset targetOffset = config.targetOffset.value(); in ConvertToPopupUIExtensionConfig() local 44 popupOffset.unit = ConvertPopupUnit(targetOffset.unit); in ConvertToPopupUIExtensionConfig() 45 popupOffset.deltaX = static_cast<double>(targetOffset.deltaX); in ConvertToPopupUIExtensionConfig() 46 popupOffset.deltaY = static_cast<double>(targetOffset.deltaY); in ConvertToPopupUIExtensionConfig() 47 popupConfig.targetOffset = popupOffset; in ConvertToPopupUIExtensionConfig()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/functions/ |
H A D | js_swiper_function.cpp | 129 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()
|
/foundation/arkui/ace_engine/interfaces/inner_api/ace/ |
H A D | popup_ui_extension_config.h | 74 std::optional<PopupOffset> targetOffset;
member
|
/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/ |
H A D | mesh_builder.cpp | 1736 uint32_t targetOffset = baseOffset + targetSize; in GatherDeltasP() local 1742 submesh.morphTargets[trg].offset = targetOffset; in GatherDeltasP() 1743 const auto startTarget = reinterpret_cast<MorphInputData*>(dst + targetOffset); in GatherDeltasP() 1752 *index++ = zeroDelta ? UINT32_MAX : ((targetOffset - baseOffset) / sizeof(MorphInputData)); in GatherDeltasP() 1756 targetOffset += sizeof(MorphInputData); in GatherDeltasP() 1768 submesh.morphTargets[trg].offset = targetOffset; in GatherDeltasP() 1769 const auto startTarget = reinterpret_cast<MorphInputData*>(dst + targetOffset); in GatherDeltasP() 1781 *index++ = zeroDelta ? UINT32_MAX : ((targetOffset - baseOffset) / sizeof(MorphInputData)); in GatherDeltasP() 1785 targetOffset += sizeof(MorphInputData); in GatherDeltasP() 1828 uint32_t targetOffset in GatherDeltasPN() local 1957 uint32_t targetOffset = baseOffset + targetSize; GatherDeltasPNT() local [all...] |
/foundation/ability/ability_runtime/interfaces/inner_api/auto_fill_manager/include/ |
H A D | auto_fill_custom_config.h | 77 std::optional<PopupOffset> targetOffset; member
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/refresh/ |
H A D | refresh_pattern.cpp | 815 auto targetOffset = (isSourceFromAnimation_ || in SpeedTriggerAnimation() local 820 if (!NearEqual(scrollOffset_, targetOffset)) { in SpeedTriggerAnimation() 822 dealSpeed = (pullDownRatio * speed) / (targetOffset - scrollOffset_); in SpeedTriggerAnimation() 828 } else if (NearZero(targetOffset)) { in SpeedTriggerAnimation() 841 pattern->offsetProperty_->Set(targetOffset); in SpeedTriggerAnimation() 860 auto targetOffset = 0.0f; in GetTargetOffset() local 864 targetOffset = refreshOffset_.ConvertToPx(); in GetTargetOffset() 867 targetOffset = 0.0f; in GetTargetOffset() 870 return targetOffset; in GetTargetOffset()
|
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | popup_param.h | 304 void SetTargetOffset(const Offset& targetOffset) in SetTargetOffset() argument 306 targetOffset_ = targetOffset; in SetTargetOffset()
|
/foundation/arkui/ace_engine/frameworks/core/components/indexer/ |
H A D | render_indexer_circle.h | 105 void BeginCollapseScrollAnimation(double originOffset, double targetOffset);
|
H A D | render_indexer_circle.cpp | 510 void RenderIndexerCircle::BeginCollapseScrollAnimation(double originOffset, double targetOffset) in BeginCollapseScrollAnimation() argument 528 InitCollapseScrollInterpolator(originOffset, targetOffset); in BeginCollapseScrollAnimation()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/bubble/ |
H A D | bubble_layout_algorithm.cpp | 224 const std::optional<OffsetF>& targetOffset, const std::optional<SizeF>& targetSize) in BubbleLayoutAlgorithm() 227 if (targetOffset.has_value()) { in BubbleLayoutAlgorithm() 228 targetOffset_ = targetOffset.value(); in BubbleLayoutAlgorithm() 310 auto targetOffset = targetNode->GetPaintRectOffset(); in Measure() local 320 if (childWidth + targetOffset.GetX() + targetSize.Width() + scaledBubbleSpacing <= rootW && in Measure() 321 targetOffset.GetX() - childWidth - scaledBubbleSpacing >= 0) { in Measure() 328 if (childHeight + targetOffset.GetY() + targetSize.Height() + scaledBubbleSpacing <= rootH && in Measure() 329 targetOffset.GetY() - childHeight - scaledBubbleSpacing >= 0) { in Measure() 332 constrainHeight = std::max(rootH - targetOffset.GetY() - targetSize.Height() - scaledBubbleSpacing, in Measure() 333 targetOffset in Measure() 223 BubbleLayoutAlgorithm(int32_t id, const std::string& tag, const std::optional<OffsetF>& targetOffset, const std::optional<SizeF>& targetSize) BubbleLayoutAlgorithm() argument 633 auto targetOffset = targetNode->GetPaintRectOffset(); InitWrapperRect() local [all...] |
H A D | bubble_layout_algorithm.h | 40 OffsetF targetOffset; member 57 BubbleLayoutAlgorithm(int32_t id, const std::string& tag, const std::optional<OffsetF>& targetOffset = std::nullopt,
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/wrapper/ |
H A D | menu_wrapper_pattern.h | 372 dumpInfo_.targetOffset = dumpInfo.targetOffset; in SetDumpInfo()
|
/foundation/ability/ability_runtime/test/unittest/auto_fill_manager_util_test/ |
H A D | auto_fill_manager_util_test.cpp | 109 EXPECT_TRUE(popupConfig.targetOffset.has_value()); in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/ |
H A D | swiper_model.h | 77 std::optional<float> targetOffset; member
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/overlay/ |
H A D | sheet_presentation_test_ng.cpp | 1066 OffsetF targetOffset(WINDOW_EDGE_SPACE.ConvertToPx() - 1.0f, 1.0f); in HWTEST_F() 1067 EXPECT_FALSE(algorithm->CheckPlacementBottomLeft(SizeF(), targetOffset)); in HWTEST_F() 1068 algorithm->AvoidanceRuleOfPlacement(Placement::BOTTOM, SizeF(), targetOffset); in HWTEST_F() 1070 targetOffset.x_ = WINDOW_EDGE_SPACE.ConvertToPx() + 1.0f; in HWTEST_F() 1073 EXPECT_TRUE(algorithm->CheckPlacementBottomLeft(SizeF(), targetOffset)); in HWTEST_F() 1074 algorithm->AvoidanceRuleOfPlacement(Placement::BOTTOM, SizeF(), targetOffset); in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/core/pipeline/base/ |
H A D | render_node.cpp | 1810 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()
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/tabs/ |
H A D | tab_bar_test_ng.cpp | 800 float targetOffset = 0.3f; in HWTEST_F() local 801 tabBarPattern_->PlayTabBarTranslateAnimation(option, targetOffset); in HWTEST_F() 822 float targetOffset = 0.3f; in HWTEST_F() local 823 tabBarPattern_->PlayIndicatorTranslateAnimation(option, originalPaintRect, targetPaintRect, targetOffset); in HWTEST_F() 826 targetOffset = -0.2f; in HWTEST_F() 827 tabBarPattern_->PlayIndicatorTranslateAnimation(option, originalPaintRect, targetPaintRect, targetOffset); in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/ |
H A D | tab_bar_pattern.cpp | 2303 RectF targetPaintRect, float targetOffset) in PlayIndicatorTranslateAnimation() 2311 indicatorEndPos_ = targetPaintRect.GetX() + targetPaintRect.Width() / HALF_OF_WIDTH + targetOffset; in PlayIndicatorTranslateAnimation() 2396 auto targetOffset = 0.0f; in TriggerTranslateAnimation() local 2398 targetOffset = CalculateTargetOffset(targetIndex); in TriggerTranslateAnimation() 2399 PlayTabBarTranslateAnimation(option, targetOffset); in TriggerTranslateAnimation() 2419 PlayIndicatorTranslateAnimation(option, originalPaintRect, targetPaintRect, targetOffset); in TriggerTranslateAnimation() 2424 auto targetOffset = 0.0f; in CalculateTargetOffset() local 2436 targetOffset = isRTL_ && axis_ == Axis::HORIZONTAL ? (startPos - scrollMargin_) in CalculateTargetOffset() 2439 targetOffset = isRTL_ && axis_ == Axis::HORIZONTAL ? (startPos - frontChildrenMainSize) in CalculateTargetOffset() 2443 CHECK_NULL_RETURN(host, targetOffset); in CalculateTargetOffset() 2302 PlayIndicatorTranslateAnimation(AnimationOption option, RectF originalPaintRect, RectF targetPaintRect, float targetOffset) PlayIndicatorTranslateAnimation() argument [all...] |
/foundation/arkui/ace_engine/test/unittest/core/pattern/bubble/ |
H A D | bubble_test_One_ng.cpp | 890 auto targetOffset = layoutAlgorithm->targetOffset_ = OffsetF(100.0f, 100.0f);
in HWTEST_F() local 891 OffsetF bottomPosition = OffsetF(targetOffset.GetX() + (targetSize.Width() - childSize.Width()) / 2.0,
in HWTEST_F() 892 targetOffset.GetY() + targetSize.Height());
in HWTEST_F() 893 OffsetF topPosition = OffsetF(targetOffset.GetX() + (targetSize.Width() - childSize.Width()) / 2.0,
in HWTEST_F() 894 targetOffset.GetY() - childSize.Height());
in HWTEST_F()
|
H A D | bubble_test_ng.cpp | 2026 auto targetOffset = bubbleLayoutAlgorithm->targetOffset_; in HWTEST_F() local 2027 EXPECT_EQ(targetOffset, OffsetF(0.0f, 0.0f)); in HWTEST_F() 2151 auto targetOffset = layoutAlgorithm->targetOffset_ = OffsetF(POSITION_OFFSET, POSITION_OFFSET); in HWTEST_F() local 2153 OffsetF bottomPosition = OffsetF(targetOffset.GetX() + (targetSize.Width() - childSize.Width()) / 2.0, in HWTEST_F() 2154 targetOffset.GetY() + targetSize.Height()); in HWTEST_F() 2155 OffsetF topPosition = OffsetF(targetOffset.GetX() + (targetSize.Width() - childSize.Width()) / 2.0, in HWTEST_F() 2156 targetOffset.GetY() - childSize.Height()); in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/core/components/scroll/ |
H A D | scrollable.h | 62 using ScrollSnapCallback = std::function<bool(double targetOffset, double velocity)>;
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/ |
H A D | menu_layout_algorithm.h | 39 OffsetF targetOffset; member
|