/foundation/arkui/ace_engine/test/unittest/core/pattern/waterflow/ |
H A D | water_flow_item_maps.h | 127 WaterFlowSections::Section { .itemsCount = 20, .onGetItemMainSizeByIndex = GET_MAIN_SIZE_FUNC, .crossCount = 3 }, 128 WaterFlowSections::Section { .itemsCount = 10, .onGetItemMainSizeByIndex = GET_MAIN_SIZE_FUNC, .crossCount = 5 }, 129 WaterFlowSections::Section { .itemsCount = 0, .onGetItemMainSizeByIndex = GET_MAIN_SIZE_FUNC, .crossCount = 2 }, 144 .crossCount = 3, 148 .crossCount = 5, 150 WaterFlowSections::Section { .itemsCount = 0, .onGetItemMainSizeByIndex = GET_MAIN_SIZE_FUNC, .crossCount = 1 }, 157 .crossCount = 2, 171 .crossCount = 2, 185 .crossCount = 1, 189 .crossCount [all...] |
H A D | water_flow_section_test.cpp | 54 newSection[4].crossCount = 3; in HWTEST_F() 88 sections[3].crossCount = 5; in HWTEST_F()
|
H A D | water_flow_sw_layout_test.cpp | 334 section.crossCount = 3; in HWTEST_F() 347 section.crossCount = 2; in HWTEST_F() 947 .itemsCount = 7, .crossCount = 5 } }; in HWTEST_F() 962 newSections = { WaterFlowSections::Section { .itemsCount = 2, .crossCount = 5 } }; in HWTEST_F() 979 newSections = { WaterFlowSections::Section { .itemsCount = 30, .crossCount = 5 } }; in HWTEST_F() 1235 .itemsCount = 2, .onGetItemMainSizeByIndex = GET_MAIN_SIZE_FUNC, .crossCount = 3, .margin = MARGIN_1 }, in HWTEST_F() 1237 .itemsCount = 3, .onGetItemMainSizeByIndex = GET_MAIN_SIZE_FUNC, .crossCount = 3, .margin = MARGIN_1 } in HWTEST_F() 1264 .itemsCount = 4, .onGetItemMainSizeByIndex = GET_MAIN_SIZE_FUNC, .crossCount = 3, .margin = MARGIN_1 }, in HWTEST_F() 1266 .itemsCount = 1, .onGetItemMainSizeByIndex = GET_MAIN_SIZE_FUNC, .crossCount = 3, .margin = MARGIN_1 } in HWTEST_F() 1323 .crossCount in HWTEST_F() [all...] |
H A D | water_flow_segment_common_test.cpp | 119 EXPECT_EQ(secObj->GetSectionInfo()[5].crossCount, 2); in HWTEST_F() 655 .crossCount = 1, in HWTEST_F() 779 .itemsCount = 10, .onGetItemMainSizeByIndex = GET_MAIN_SIZE_FUNC, .crossCount = 5, .margin = MARGIN_1 } }; in HWTEST_F() 1034 .itemsCount = 1, .onGetItemMainSizeByIndex = GET_MAIN_SIZE_FUNC, .crossCount = 1, .margin = MARGIN_1 } }; in HWTEST_F()
|
H A D | water_flow_segment_integrated.cpp | 68 EXPECT_EQ(secObj->GetSectionInfo()[5].crossCount, 2); in HWTEST_F()
|
H A D | water_flow_segment_layout_test.cpp | 612 // change crossCount, should jump back to index 75 in HWTEST_F() 736 * @tc.desc: Test Changing crossCount and deleting items. 1496 .itemsCount = 10, .onGetItemMainSizeByIndex = GET_MAIN_SIZE_FUNC, .crossCount = 5, .margin = MARGIN_1 } }; in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/grid_scroll/ |
H A D | grid_scroll_with_options_layout_algorithm.cpp | 143 auto crossCount = static_cast<int32_t>(crossCount_); in GetCrossStartAndSpan() local 145 crossStart = (itemIndex - (*(options.irregularIndexes.rbegin()) + 1)) % crossCount; in GetCrossStartAndSpan() 148 crossStart = (itemIndex - (*(--iter) + 1)) % crossCount; in GetCrossStartAndSpan() 150 crossStart = itemIndex % crossCount; in GetCrossStartAndSpan() 181 static void ResetInvalidCrossSpan(uint32_t crossCount, int32_t& crossSpan) in ResetInvalidCrossSpan() argument 183 if (crossSpan > static_cast<int32_t>(crossCount) || crossSpan <= 0) { in ResetInvalidCrossSpan() 189 const GridLayoutOptions& options, int32_t firstIrregularIndex, Axis axis, int32_t crossCount) in InitIrregularItemsPosition() 194 ResetInvalidCrossSpan(crossCount, crossSpan); in InitIrregularItemsPosition() 196 if (crossCount != 0) { in InitIrregularItemsPosition() 197 auto crossStart = sum % crossCount; in InitIrregularItemsPosition() 188 InitIrregularItemsPosition(std::map<int32_t, int32_t>& irregularItemsPosition, const GridLayoutOptions& options, int32_t firstIrregularIndex, Axis axis, int32_t crossCount) InitIrregularItemsPosition() argument 209 auto crossCount = static_cast<int32_t>(crossCount_); GetCrossStartAndSpanWithUserFunction() local [all...] |
H A D | grid_scroll_with_options_layout_algorithm.h | 26 GridScrollWithOptionsLayoutAlgorithm(GridLayoutInfo gridLayoutInfo, uint32_t crossCount, uint32_t mainCount) in GridScrollWithOptionsLayoutAlgorithm() argument 27 : GridScrollLayoutAlgorithm(gridLayoutInfo, crossCount, mainCount) {}; in GridScrollWithOptionsLayoutAlgorithm()
|
H A D | grid_scroll_layout_algorithm.h | 30 GridScrollLayoutAlgorithm(GridLayoutInfo gridLayoutInfo, uint32_t crossCount, uint32_t mainCount) in GridScrollLayoutAlgorithm() argument 31 : GridLayoutBaseAlgorithm(std::move(gridLayoutInfo)), crossCount_(crossCount), mainCount_(mainCount) {}; in GridScrollLayoutAlgorithm()
|
H A D | grid_scroll_layout_algorithm.cpp | 1580 auto crossCount = static_cast<int32_t>(crossCount_); in MeasureNewChild() local 1588 if (crossSpan > crossCount) { in MeasureNewChild() 1591 crossCount, crossSpan); in MeasureNewChild() 1596 if (crossStart >= 0 && crossStart < crossCount) { in MeasureNewChild() 1612 if (mainIndex >= mainCount || crossIndex >= crossCount) { in MeasureNewChild() 2017 auto crossCount = static_cast<int32_t>(crossCount_); in MeasureCachedChild() local 2022 if (crossSpan > crossCount) { in MeasureCachedChild() 2027 if (crossStart >= 0 && crossStart < crossCount) { in MeasureCachedChild() 2042 if (mainIndex >= mainCount || crossIndex >= crossCount) { in MeasureCachedChild()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/ |
H A D | water_flow_sections.h | 35 return itemsCount == other.itemsCount && crossCount == other.crossCount && columnsGap == other.columnsGap && in operator ==() 45 return crossCount == other.crossCount && columnsGap == other.columnsGap && rowsGap == other.rowsGap && in OnlyCountDiff() 50 std::optional<int32_t> crossCount; member
|
H A D | water_flow_pattern.cpp | 828 .append("{ crossCount:" + std::to_string(section.crossCount.value_or(1)) + " },")
|
/foundation/arkui/ace_engine/interfaces/native/node/ |
H A D | waterflow_section_option.cpp | 72 ArkUI_WaterFlowSectionOption* option, int32_t index, int32_t crossCount) in OH_ArkUI_WaterFlowSectionOption_SetCrossCount() 78 if (crossCount <= 0) { in OH_ArkUI_WaterFlowSectionOption_SetCrossCount() 79 crossCount = 1; in OH_ArkUI_WaterFlowSectionOption_SetCrossCount() 84 option->sections[index].crossCount = crossCount; in OH_ArkUI_WaterFlowSectionOption_SetCrossCount() 86 option->sections[index].crossCount = crossCount; in OH_ArkUI_WaterFlowSectionOption_SetCrossCount() 171 return option->sections[index].crossCount; in OH_ArkUI_WaterFlowSectionOption_GetCrossCount() 71 OH_ArkUI_WaterFlowSectionOption_SetCrossCount( ArkUI_WaterFlowSectionOption* option, int32_t index, int32_t crossCount) OH_ArkUI_WaterFlowSectionOption_SetCrossCount() argument
|
H A D | waterflow_section_option.h | 26 int32_t crossCount; member
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/grid_layout/ |
H A D | grid_layout_algorithm.h | 34 GridLayoutAlgorithm(GridLayoutInfo gridLayoutInfo, int32_t crossCount, int32_t mainCount) in GridLayoutAlgorithm() argument 35 : GridLayoutBaseAlgorithm(std::move(gridLayoutInfo)), crossCount_(crossCount), mainCount_(mainCount) {}; in GridLayoutAlgorithm()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_water_flow_sections.cpp | 134 if (obj->HasProperty("crossCount")) { in ParseSectionOptions() 135 auto crossCount = obj->GetProperty("crossCount"); in ParseSectionOptions() local 137 JSViewAbstract::ParseJsInteger(crossCount, crossCountValue); in ParseSectionOptions() 141 section.crossCount = crossCountValue; in ParseSectionOptions()
|
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | water_flow_modifier.cpp | 454 section.crossCount = sectionData.crossCount; in SetWaterFlowSectionOptions() 497 option.sections[i].crossCount = newSection[i].crossCount.has_value() ? newSection[i].crossCount.value() : 0; in GetWaterFlowSectionOptions()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/layout/sliding_window/ |
H A D | water_flow_layout_info_sw.cpp | 574 lanes_[i] = std::vector<Lane>(sections[i].crossCount.value_or(1)); 628 lanes_[i] = std::vector<Lane>(sections[i].crossCount.value_or(1)); 642 lanes_[i] = std::vector<Lane>(sections[i].crossCount.value_or(1));
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/ |
H A D | grid_pattern.cpp | 50 auto crossCount = cols.empty() ? Infinity<int32_t>() : static_cast<int32_t>(cols.size()); in CreateLayoutAlgorithm() local 53 std::swap(crossCount, mainCount); in CreateLayoutAlgorithm() 55 gridLayoutInfo_.crossCount_ = crossCount; in CreateLayoutAlgorithm() 61 return MakeRefPtr<GridLayoutAlgorithm>(gridLayoutInfo_, crossCount, mainCount); in CreateLayoutAlgorithm() 79 result = MakeRefPtr<GridScrollLayoutAlgorithm>(gridLayoutInfo_, crossCount, mainCount); in CreateLayoutAlgorithm() 81 result = MakeRefPtr<GridScrollWithOptionsLayoutAlgorithm>(gridLayoutInfo_, crossCount, mainCount); in CreateLayoutAlgorithm() 1751 DumpLog::GetInstance().AddDesc("crossCount:" + std::to_string(gridLayoutInfo_.crossCount_)); 2147 json->Put("crossCount", gridLayoutInfo_.crossCount_);
|
H A D | grid_layout_info.cpp | 307 inline float AddLinesInBetween(int32_t prevIdx, int32_t idx, int32_t crossCount, float lineHeight) in AddLinesInBetween() argument 309 if (crossCount == 0) { in AddLinesInBetween() 312 return (idx - prevIdx) > 1 ? ((idx - 2 - prevIdx) / crossCount + 1) * lineHeight : 0.0f; in AddLinesInBetween()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/layout/top_down/ |
H A D | water_flow_layout_info.cpp | 470 for (int32_t j = 0; j < sections[i].crossCount; ++j) { in InitSegments()
|
H A D | water_flow_segmented_layout.cpp | 231 int32_t crossCnt = options[i].crossCount.value_or(1); in SegmentedInit()
|
/foundation/arkui/ace_engine/interfaces/native/ |
H A D | native_type.h | 2300 * @param crossCount Indicates the number of columns or rows, depending on the layout direction. 2304 int32_t index, int32_t crossCount);
|