/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/menu_item_group/ |
H A D | menu_item_group_layout_algorithm.cpp | 111 if (footerIndex_ >= 0) { in Measure() 112 auto footerWrapper = layoutWrapper->GetOrCreateChildByIndex(footerIndex_); in Measure() 135 if (footerIndex_ >= 0) { in Layout() 172 auto wrapper = layoutWrapper->GetOrCreateChildByIndex(footerIndex_); in LayoutFooter() 261 if (headerIndex_ < 0 && footerIndex_ < 0) { in UpdateHeaderAndFooterMargin() 305 if (footerIndex_ >= 0) { in UpdateHeaderAndFooterMargin() 306 auto footerWrapper = layoutWrapper->GetOrCreateChildByIndex(footerIndex_); in UpdateHeaderAndFooterMargin()
|
H A D | menu_item_group_layout_algorithm.h | 33 : headerIndex_(headerIndex), footerIndex_(footerIndex), itemStartIndex_(itemStartIndex) in MenuItemGroupLayoutAlgorithm() 59 int32_t footerIndex_ = -1; variable
|
H A D | menu_item_group_pattern.h | 49 … return MakeRefPtr<MenuItemGroupLayoutAlgorithm>(headerIndex_, footerIndex_, itemStartIndex_); in CreateLayoutAlgorithm() 102 int32_t footerIndex_ = -1; variable
|
H A D | menu_item_group_pattern.cpp | 98 if (footerIndex_ < 0) { in AddFooter() 99 footerIndex_ = itemStartIndex_; in AddFooter() 103 host->ReplaceChild(host->GetChildAtIndex(footerIndex_), footer); in AddFooter()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/layout/ |
H A D | water_flow_layout_info_base.h | 162 return idx + footerIndex_ + 1; in NodeIdx() 170 return childrenCount - footerIndex_ - 1; in ItemCnt() 207 int32_t footerIndex_ = -1; variable
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/layout/top_down/ |
H A D | water_flow_segmented_layout.cpp | 190 if (info_->footerIndex_ >= 0) { in Init() 290 …info_->segmentTails_ = { (info_->footerIndex_ >= 0) ? info_->childrenCount_ - 2 : info_->childrenC… in RegularInit() 305 if (info_->footerIndex_ != info_->childrenCount_ - 1) { in InitFooter() 306 info_->footerIndex_ = std::min(info_->footerIndex_, info_->childrenCount_ - 1); in InitFooter() 307 info_->ClearCacheAfterIndex(info_->footerIndex_ - 1); in InitFooter() 309 auto footer = wrapper_->GetOrCreateChildByIndex(info_->footerIndex_); in InitFooter() 311 waterFlow->RemoveChildAtIndex(info_->footerIndex_); in InitFooter() 314 info_->segmentCache_.erase(info_->footerIndex_); in InitFooter() 315 info_->footerIndex_ = info_->childrenCount_ - 1; in InitFooter()
|
H A D | water_flow_layout_algorithm.cpp | 102 int32_t updateIdx = GetUpdateIdx(layoutWrapper, layoutInfo_->footerIndex_); in Measure() 291 if (layoutInfo_->footerIndex_ < 0) { in LayoutFooter() 295 auto footer = layoutWrapper->GetOrCreateChildByIndex(layoutInfo_->footerIndex_); in LayoutFooter() 306 auto footer = layoutWrapper->GetChildByIndex(layoutInfo_->footerIndex_); in LayoutFooter() 400 if (layoutInfo_->footerIndex_ >= 0) { in ModifyCurrentOffsetWhenReachEnd()
|
H A D | water_flow_layout_algorithm.h | 52 return index + layoutInfo_->footerIndex_ + 1; in GetChildIndexWithFooter()
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/waterflow/ |
H A D | water_flow_segment_layout_test.cpp | 165 info->footerIndex_ = 0; 300 info->footerIndex_ = 0; 331 info->footerIndex_ = 0; 363 info->footerIndex_ = 0; 419 info->footerIndex_ = 0; 459 info->footerIndex_ = 0; 511 info->footerIndex_ = 0; 552 info->footerIndex_ = 0; 601 info->footerIndex_ = 0; 634 info->footerIndex_ = 0; [all …]
|
H A D | water_flow_regular_test.cpp | 79 EXPECT_EQ(GetChildOffset(frameNode_, info->footerIndex_), OffsetF(0.0f, 750.0f)); 137 EXPECT_EQ(info->footerIndex_, 0); 148 EXPECT_EQ(info->footerIndex_, -1);
|
H A D | water_flow_sw_layout_test.cpp | 82 EXPECT_EQ(GetChildOffset(frameNode_, info->footerIndex_), OffsetF(0.0f, 750.0f)); 688 EXPECT_EQ(GetChildOffset(frameNode_, info->footerIndex_), OffsetF(0.0f, 750.0f));
|
H A D | water_flow_top_down_test.cpp | 380 EXPECT_EQ(info->endIndex_, std::max(49, info->footerIndex_));
|
H A D | water_flow_test_ng.cpp | 1459 auto footerRect = GetChildRect(frameNode_, pattern_->layoutInfo_->footerIndex_);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/ |
H A D | list_item_group_pattern.cpp | 100 …auto layoutAlgorithm = MakeRefPtr<ListItemGroupLayoutAlgorithm>(headerIndex_, footerIndex_, itemSt… in CreateLayoutAlgorithm() 406 footerIndex_ = footerIndex; in CalculateItemStartIndex() 423 if (show && footerIndex_ >= 0) { in UpdateActiveChildRange() 424 host->GetOrCreateChildByIndex(footerIndex_); in UpdateActiveChildRange() 439 } else if (headerIndex_ >= 0 || footerIndex_ >= 0) { in UpdateActiveChildRange() 447 if (footerIndex_ >= 0) { in UpdateActiveChildRange() 448 host->GetOrCreateChildByIndex(footerIndex_); in UpdateActiveChildRange()
|
H A D | list_item_group_layout_algorithm.h | 71 :headerIndex_(headerIndex), footerIndex_(footerIndex), itemStartIndex_(itemStartIndex) {} in ListItemGroupLayoutAlgorithm() 445 int32_t footerIndex_; variable
|
H A D | list_item_group_layout_algorithm.cpp | 182 if (headerIndex_ >= 0 || footerIndex_ >= 0) { in Layout() 239 RefPtr<LayoutWrapper> footerWrapper = footerIndex_ >= 0 ? in MeasureHeaderFooter() 240 layoutWrapper->GetOrCreateChildByIndex(footerIndex_) : nullptr; in MeasureHeaderFooter() 1124 RefPtr<LayoutWrapper> footerWrapper = footerIndex_ >= 0 ? in LayoutHeaderFooterRTL() 1125 layoutWrapper->GetOrCreateChildByIndex(footerIndex_) : nullptr; in LayoutHeaderFooterRTL() 1170 RefPtr<LayoutWrapper> footerWrapper = footerIndex_ >= 0 ? in LayoutHeaderFooterLTR() 1171 layoutWrapper->GetOrCreateChildByIndex(footerIndex_) : nullptr; in LayoutHeaderFooterLTR()
|
H A D | list_item_group_pattern.h | 337 int32_t footerIndex_ = -1; variable
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/ |
H A D | water_flow_pattern.cpp | 153 layoutInfo_->footerIndex_ = 0; in BeforeCreateLayoutWrapper() 155 layoutInfo_->footerIndex_ = -1; in BeforeCreateLayoutWrapper() 377 if (layoutInfo_->footerIndex_ == 0 && layoutInfo_->jumpIndex_ == childCount - 1) { in UpdateStartIndex() 455 index += layoutInfo_->footerIndex_ + 1; in GetItemRect() 662 layoutInfo_->footerIndex_ = 0; in AddFooter() 737 int32_t footerOffset = layoutInfo_->footerIndex_ + 1; // 1 if footer present, 0 if not in GetNextFocusNode()
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/menu/ |
H A D | menuitemgroup_test_ng.cpp | 289 algorithm->footerIndex_ = 0; 335 algorithm->footerIndex_ = 0; 471 algorithm->footerIndex_ = 0; 738 EXPECT_EQ(menuItemGroupPattern->footerIndex_, 1); 740 menuItemGroupPattern->footerIndex_ = 0; 762 menuItemGroupPattern->footerIndex_ = 0; 764 EXPECT_EQ(menuItemGroupPattern->footerIndex_, 0);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/layout/sliding_window/ |
H A D | water_flow_layout_sw.cpp | 103 } else if (info_->footerIndex_ == 0) { in Layout() 188 int32_t updateIdx = GetUpdateIdx(wrapper_, info_->footerIndex_); in CheckReset() 553 } else if (jumpIdx == itemCnt_ && info_->footerIndex_ == 0) { in MeasureOnJump() 644 if (LessOrEqual(maxEnd, mainLen_) && info_->footerIndex_ == 0) { in AdjustOverScroll() 747 if (info_->footerIndex_ != 0) { in LayoutFooter() 772 return idx + info_->footerIndex_ + 1; in nodeIdx()
|
H A D | water_flow_layout_info_sw.cpp | 46 if (footerIndex_ == 0) { in Sync()
|