/foundation/arkui/ace_engine/test/unittest/core/pattern/waterflow/ |
H A D | water_flow_top_down_test.cpp | 530 * @tc.desc: Test ScrollToIndex with extraOffset 544 std::optional<float> extraOffset = 0.f; in HWTEST_F() local 545 pattern_->ScrollToIndex(2, false, ScrollAlign::START, extraOffset); in HWTEST_F() 549 extraOffset = -200.f; in HWTEST_F() 550 pattern_->ScrollToIndex(2, false, ScrollAlign::START, extraOffset); in HWTEST_F() 554 pattern_->ScrollToIndex(27, false, ScrollAlign::START, extraOffset); in HWTEST_F() 558 pattern_->ScrollToIndex(LAST_ITEM, false, ScrollAlign::END, extraOffset); in HWTEST_F() 562 extraOffset = 200.f; in HWTEST_F() 563 pattern_->ScrollToIndex(2, false, ScrollAlign::START, extraOffset); in HWTEST_F() 567 pattern_->ScrollToIndex(27, false, ScrollAlign::END, extraOffset); in HWTEST_F() 592 std::optional<float> extraOffset = 0.f; HWTEST_F() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_v2/water_flow/ |
H A D | water_flow_position_controller.h | 31 void ScrollToIndex(int32_t index, bool smooth, ScrollAlign align, std::optional<float> extraOffset) override;
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/grid/ |
H A D | grid_scroller_test_ng.cpp | 25 void ScrollToIndex(int32_t index, bool smooth, ScrollAlign align, std::optional<float> extraOffset); 45 void GridScrollerTestNg::ScrollToIndex(int32_t index, bool smooth, ScrollAlign align, std::optional<float> extraOffset) in ScrollToIndex() argument 47 pattern_->ScrollToIndex(index, smooth, align, extraOffset); in ScrollToIndex() 399 * @tc.desc: Test ScrollToIndex with extraOffset 412 std::optional<float> extraOffset = -400.f; in HWTEST_F() local 413 ScrollToIndex(2, false, ScrollAlign::START, extraOffset); in HWTEST_F() 415 ScrollToIndex(17, false, ScrollAlign::START, extraOffset); in HWTEST_F() 417 ScrollToIndex(17, false, ScrollAlign::END, extraOffset); in HWTEST_F() 419 ScrollToIndex(LAST_ITEM, false, ScrollAlign::END, extraOffset); in HWTEST_F() 422 extraOffset in HWTEST_F() 450 std::optional<float> extraOffset = -400.f; HWTEST_F() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_v2/list/ |
H A D | list_position_controller.h | 31 std::optional<float> extraOffset = std::nullopt) override;
|
/foundation/arkui/ace_engine/frameworks/core/components_v2/grid/ |
H A D | grid_position_controller.h | 32 std::optional<float> extraOffset = std::nullopt) override;
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid_row/ |
H A D | grid_row_layout_algorithm.cpp | 204 float extraOffset = 0.0f; in CalcCrossAxisAlignment() local 206 extraOffset = (currentRowHeight - childSize.Height() - childMargin->top.value_or(0) - in CalcCrossAxisAlignment() 210 extraOffset = currentRowHeight - childSize.Height() - childMargin->bottom.value_or(0.0f) - in CalcCrossAxisAlignment() 213 if (!NearZero(extraOffset)) { in CalcCrossAxisAlignment() 214 child.second.offsetY += extraOffset; in CalcCrossAxisAlignment()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scrollable/ |
H A D | scrollable_controller.h | 40 void ScrollToIndex(int32_t index, bool smooth, ScrollAlign align, std::optional<float> extraOffset) override;
|
H A D | scrollable_controller.cpp | 23 int32_t index, bool smooth, ScrollAlign align, std::optional<float> extraOffset) in ScrollToIndex() 35 pattern->ScrollToIndex(index, smooth, align, extraOffset); in ScrollToIndex() 22 ScrollToIndex( int32_t index, bool smooth, ScrollAlign align, std::optional<float> extraOffset) ScrollToIndex() argument
|
H A D | scrollable_pattern.h | 449 std::optional<float> extraOffset = std::nullopt) in ScrollToIndex() 452 void SetExtraOffset(std::optional<float> extraOffset) in SetExtraOffset() argument 454 extraOffset_ = extraOffset; in SetExtraOffset()
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/list/ |
H A D | list_scroller_test_ng.cpp | 543 * @tc.desc: Test ScrollToIndex with extraOffset 555 std::optional<float> extraOffset = -200.f; in HWTEST_F() local 556 ScrollToIndex(1, false, ScrollAlign::START, extraOffset); in HWTEST_F() 558 ScrollToIndex(18, false, ScrollAlign::START, extraOffset); in HWTEST_F() 560 ScrollToIndex(18, false, ScrollAlign::END, extraOffset); in HWTEST_F() 562 ScrollToIndex(LAST_ITEM, false, ScrollAlign::END, extraOffset); in HWTEST_F() 565 extraOffset = 200.f; in HWTEST_F() 566 ScrollToIndex(1, false, ScrollAlign::START, extraOffset); in HWTEST_F() 568 ScrollToIndex(1, false, ScrollAlign::END, extraOffset); in HWTEST_F() 570 ScrollToIndex(18, false, ScrollAlign::END, extraOffset); in HWTEST_F() 590 std::optional<float> extraOffset = -200.f; HWTEST_F() local [all...] |
H A D | list_test_ng.h | 103 int32_t index, bool smooth, ScrollAlign align, std::optional<float> extraOffset, float expectOffset = 0.0);
|
H A D | list_test_ng.cpp | 408 int32_t index, bool smooth, ScrollAlign align, std::optional<float> extraOffset, float expectOffset) 411 positionController_->ScrollToIndex(index, smooth, align, extraOffset);
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/ |
H A D | water_flow_pattern.cpp | 348 auto extraOffset = GetExtraOffset(); in ScrollToTargetIndex() local 349 if (extraOffset.has_value()) { in ScrollToTargetIndex() 350 targetPosition += extraOffset.value(); in ScrollToTargetIndex() 517 void WaterFlowPattern::ScrollToIndex(int32_t index, bool smooth, ScrollAlign align, std::optional<float> extraOffset) in ScrollToIndex() argument 526 SetExtraOffset(extraOffset); in ScrollToIndex() 535 if (extraOffset.has_value()) { in ScrollToIndex() 536 layoutInfo_->extraOffset_ = -extraOffset.value(); in ScrollToIndex()
|
H A D | water_flow_pattern.h | 121 std::optional<float> extraOffset = std::nullopt) override;
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_scroller.cpp | 243 std::optional<float> extraOffset = std::nullopt; in ScrollToIndex() local 248 if (JSViewAbstract::ParseLengthMetricsToDimension(obj->GetProperty("extraOffset"), offset)) { in ScrollToIndex() 251 extraOffset = offsetPx; in ScrollToIndex() 256 scrollController->ScrollToIndex(index, smooth, align, extraOffset); in ScrollToIndex()
|
/foundation/arkui/ace_engine/frameworks/core/components/scroll/ |
H A D | scroll_controller_base.h | 78 std::optional<float> extraOffset = std::nullopt) in ScrollToIndex()
|
H A D | scroll_position_controller.h | 112 void ScrollToIndex(int32_t index, bool smooth, ScrollAlign align, std::optional<float> extraOffset) override;
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/ |
H A D | list_pattern.h | 48 float extraOffset = 0.0f; member 191 std::optional<float> extraOffset = std::nullopt) override;
|
H A D | list_pattern.cpp | 1316 void ListPattern::ScrollToIndex(int32_t index, bool smooth, ScrollAlign align, std::optional<float> extraOffset) 1326 SetExtraOffset(extraOffset); 1332 if (extraOffset.has_value()) { 1333 currentDelta_ = extraOffset.value(); 1555 float extraOffset = 0.0f; 1557 extraOffset = GetExtraOffset().value(); 1558 targetPos += extraOffset; 1569 scrollTarget_ = { index, extraOffset, align, targetPos + currentOffset_ }; 1848 targetPos += currentOffset_ + target.extraOffset;
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/ |
H A D | grid_pattern.cpp | 1912 void GridPattern::ScrollToIndex(int32_t index, bool smooth, ScrollAlign align, std::optional<float> extraOffset) 1920 if (extraOffset.has_value()) { 1921 gridLayoutInfo_.extraOffset_ = -extraOffset.value(); 1924 SetExtraOffset(extraOffset); 1965 auto&& extraOffset = GetExtraOffset(); 1983 if (NearZero(extraOffset.value_or(0.0f))) { 1990 if (extraOffset.has_value()) { 1992 "AnimateToTargetImpl, success:%u, targetPos:%f, extraOffset:%f", success, targetPos, *extraOffset); 1993 targetPos += *extraOffset; [all...] |
H A D | grid_pattern.h | 210 std::optional<float> extraOffset = std::nullopt) override;
|
/foundation/arkui/ace_engine/frameworks/core/components/common/painter/ |
H A D | border_image_painter.cpp | 71 void BorderImagePainter::UpdateExtraOffsetToPaintSize(const Offset& extraOffset) in UpdateExtraOffsetToPaintSize() argument 73 paintSize_ += Size(extraOffset.GetX() * 2, extraOffset.GetY() * 2); in UpdateExtraOffsetToPaintSize()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/grid_scroll/ |
H A D | grid_scroll_layout_algorithm.cpp | 1853 auto extraOffset = -gridLayoutInfo_.extraOffset_.value(); in SupplyAllData2ZeroIndex() local 1857 while (GreatOrEqual(extraOffset, heightForExtralOffset) && !Negative(lineHeight)) { in SupplyAllData2ZeroIndex() 1863 extraOffset, heightForExtralOffset, currentMainLineIndex_); in SupplyAllData2ZeroIndex()
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/web/ |
H A D | web_pattern_focus_test_ng.cpp | 313 std::optional<float> extraOffset = std::nullopt) override
|