Home
last modified time | relevance | path

Searched refs:extraOffset (Results 1 - 24 of 24) sorted by relevance

/foundation/arkui/ace_engine/test/unittest/core/pattern/waterflow/
H A Dwater_flow_top_down_test.cpp530 * @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 Dwater_flow_position_controller.h31 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 Dgrid_scroller_test_ng.cpp25 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 Dlist_position_controller.h31 std::optional<float> extraOffset = std::nullopt) override;
/foundation/arkui/ace_engine/frameworks/core/components_v2/grid/
H A Dgrid_position_controller.h32 std::optional<float> extraOffset = std::nullopt) override;
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid_row/
H A Dgrid_row_layout_algorithm.cpp204 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 Dscrollable_controller.h40 void ScrollToIndex(int32_t index, bool smooth, ScrollAlign align, std::optional<float> extraOffset) override;
H A Dscrollable_controller.cpp23 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 Dscrollable_pattern.h449 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 Dlist_scroller_test_ng.cpp543 * @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 Dlist_test_ng.h103 int32_t index, bool smooth, ScrollAlign align, std::optional<float> extraOffset, float expectOffset = 0.0);
H A Dlist_test_ng.cpp408 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 Dwater_flow_pattern.cpp348 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 Dwater_flow_pattern.h121 std::optional<float> extraOffset = std::nullopt) override;
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_scroller.cpp243 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 Dscroll_controller_base.h78 std::optional<float> extraOffset = std::nullopt) in ScrollToIndex()
H A Dscroll_position_controller.h112 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 Dlist_pattern.h48 float extraOffset = 0.0f; member
191 std::optional<float> extraOffset = std::nullopt) override;
H A Dlist_pattern.cpp1316 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 Dgrid_pattern.cpp1912 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 Dgrid_pattern.h210 std::optional<float> extraOffset = std::nullopt) override;
/foundation/arkui/ace_engine/frameworks/core/components/common/painter/
H A Dborder_image_painter.cpp71 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 Dgrid_scroll_layout_algorithm.cpp1853 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 Dweb_pattern_focus_test_ng.cpp313 std::optional<float> extraOffset = std::nullopt) override

Completed in 27 milliseconds