Home
last modified time | relevance | path

Searched refs:irregularIndexes (Results 1 – 25 of 27) sorted by relevance

12

/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/grid/irregular/
H A Dirregular_matrics.cpp22 option.irregularIndexes = { in GetOptionDemo1()
52 option.irregularIndexes = { in GetOptionDemo2()
79 option.irregularIndexes = { in GetOptionDemo5()
109 option.irregularIndexes = { in GetOptionDemo6()
121 option.irregularIndexes = { in GetOptionDemo8()
143 option.irregularIndexes = { in GetOptionDemo9()
165 option.irregularIndexes = { in GetOptionDemo10()
195 option.irregularIndexes = { in GetOptionDemo11()
219 option.irregularIndexes = { in GetOptionDemo12()
238 option.irregularIndexes = { in GetOptionDemo13()
[all …]
H A Dgrid_irregular_filler_test.cpp157 option.irregularIndexes = {
233 option.irregularIndexes = {
273 option.irregularIndexes = {
H A Dgrid_layout_range_solver_test.cpp95 option.irregularIndexes = {
135 option.irregularIndexes = {
H A Dgrid_irregular_layout_test.cpp1884 option.irregularIndexes = {
1927 option.irregularIndexes = {
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/grid_scroll/
H A Dgrid_scroll_with_options_layout_algorithm.cpp129 if (options.irregularIndexes.empty()) { in GetCrossStartAndSpan()
133 auto firstIrregularIndex = *(options.irregularIndexes.begin()); in GetCrossStartAndSpan()
140 if (options.irregularIndexes.find(itemIndex) != options.irregularIndexes.end()) { in GetCrossStartAndSpan()
146 if (iter == options.irregularIndexes.end()) { in GetCrossStartAndSpan()
149 if (iter != options.irregularIndexes.begin()) { in GetCrossStartAndSpan()
217 auto iter = options.irregularIndexes.find(lastIndex); in GetCrossStartAndSpanWithUserFunction()
218 if (iter == options.irregularIndexes.end()) { in GetCrossStartAndSpanWithUserFunction()
219 iter = options.irregularIndexes.begin(); in GetCrossStartAndSpanWithUserFunction()
221 for (; iter != options.irregularIndexes.end(); ++iter) { in GetCrossStartAndSpanWithUserFunction()
245 … bool isRegularItem = (options.irregularIndexes.find(itemIndex) == options.irregularIndexes.end()); in GetCrossStartAndSpanWithUserFunction()
[all …]
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/grid/
H A Dgrid_option_layout_test_ng.cpp41 option.irregularIndexes = { 6, 1, 2, 3, 4, 5, 0 };
73 option.irregularIndexes = { 6, 1, 2, 3, 4, 5, 0 };
100 option.irregularIndexes = { 6, 1, 2, 3, 4, 5 };
135 option.irregularIndexes = { 6, 1, 2, 3, 4, 5 };
172 option.irregularIndexes = { 6, 1, 2, 3, 4, 5 };
204 option.irregularIndexes = { 6, 3, 4, 5 };
365 option.irregularIndexes = { 1, 3 };
427 option.irregularIndexes = {
474 option.irregularIndexes = {
690 option.irregularIndexes = { 6, 1, 4 };
[all …]
H A Dlayout_info_test.cpp38 .irregularIndexes = { 2, 5, 10 },
72 .irregularIndexes = { 0 },
241 .irregularIndexes = { 2, 5, 10 },
693 option.irregularIndexes = { 0, 8874, 8876, 8878, 8975, 8977, 8979, 8981, 9725 };
H A Dgrid_scroller_test_ng.cpp274 option.irregularIndexes = { 6, 1, 3, 4, 5, 0 };
303 option.irregularIndexes = { 6, 1, 3, 4, 5, 0 };
H A Dgrid_common_test_ng.cpp300 option.irregularIndexes = { 6, 1, 3, 4, 5, 0 };
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/
H A Dgrid_layout_options.h58 std::set<int32_t> irregularIndexes; member
63 … return (regularSize == options.regularSize) && (irregularIndexes == options.irregularIndexes) &&
H A Dgrid_layout_info.cpp297 if (options.irregularIndexes.empty() || startIndex_ < *(options.irregularIndexes.begin())) { in GetContentOffset()
330 if (options.irregularIndexes.find(lineStart) != options.irregularIndexes.end()) { in GetLineHeights()
345 if (options.irregularIndexes.empty()) { in GetContentHeight()
367 for (int32_t idx : options.irregularIndexes) { in GetContentHeight()
447 for (int32_t idx : options.irregularIndexes) { in SkipStartIndexByOffset()
H A Dgrid_layout_property.cpp114 for (int32_t idx : layoutOptions.irregularIndexes) { in UpdateIrregularFlag()
H A Dgrid_pattern.cpp1875 if (options.irregularIndexes.empty()) { in GetIrregularIndexesString()
1878 std::string irregularIndexes = std::string("IrregularIndexes: ["); in GetIrregularIndexesString() local
1880 for (const auto& index : options.irregularIndexes) { in GetIrregularIndexesString()
1882 irregularIndexes.append(", "); in GetIrregularIndexesString()
1884 irregularIndexes.append(std::to_string(index)); in GetIrregularIndexesString()
1887 irregularIndexes.append("..."); in GetIrregularIndexesString()
1891 irregularIndexes.append("]"); in GetIrregularIndexesString()
1892 return irregularIndexes; in GetIrregularIndexesString()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_component/src/
H A DArkGrid.ts208 isArray(this.value?.irregularIndexes) ? this.value.irregularIndexes : undefined,
209 isArray(this.value?.irregularIndexes) ? this.value.irregularIndexes.length : undefined,
216 !isBaseOrResourceEqual(this.stageValue?.irregularIndexes, this.value?.irregularIndexes) ||
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/irregular/
H A Dgrid_layout_utils.cpp27 if (opts.irregularIndexes.find(idx) != opts.irregularIndexes.end()) { in GetItemSize()
H A Dgrid_layout_range_solver.cpp176 if (opts_->irregularIndexes.find(itemIdx) != opts_->irregularIndexes.end()) { in CheckMultiRow()
H A Dgrid_irregular_layout_algorithm.cpp612 …if (!item.second || opts->irregularIndexes.find(std::abs(item.second)) != opts->irregularIndexes.e… in IsIrregularLine()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-container-grid.md55 布局选项。其中,irregularIndexes和onGetIrregularSizeByIndex可对仅设置rowsTemplate或columnsTemplate的Grid使用,可以指定一个in…
60 | irregularIndexes | number[] | 否 | 指定的GridItem索引在Grid中的大小是不规则的。当不设置onGetIrregularSizeByIndex时,i…
61 …ndex: number) => [number, number] | 否 | 配合irregularIndexes使用,设置不规则GridItem占用的行数和列数。开发者可为irregul…
926 GridLayoutOptions的使用:irregularIndexes与onGetIrregularSizeByIndex。
937 irregularIndexes: [0, 6], // 索引为0和6的GridItem占用一行
942 irregularIndexes: [0, 7], // 索引为0和7的GridItem占用的列数由onGetIrregularSizeByIndex指定
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/
H A Darkts_native_grid_bridge.cpp813 auto irregularIndexes = std::make_unique<int32_t[]>(length); in SetGridLayoutOptions() local
814 …arResult = ArkTSUtils::ParseArray<int32_t>(vm, irregularIndexesVal, irregularIndexes.get(), length, in SetGridLayoutOptions()
826 options.irregularIndexes.emplace(irregularIndexes[i]); in SetGridLayoutOptions()
829 irregularIndexes.reset(); in SetGridLayoutOptions()
/ohos5.0/docs/zh-cn/application-dev/ui/
H A Darkts-layout-development-create-grid.md70 …-container-grid.md#gridlayoutoptions10对象说明)实现如图所示的单个网格横跨多行或多列的场景,其中,irregularIndexes和onGetIrregula…
/ohos5.0/docs/zh-cn/application-dev/performance/
H A Dgrid_optimization.md284 irregularIndexes: this.irregularData,
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-container-grid.md55 Defines the layout options. In this API, **irregularIndexes** and **onGetIrregularSizeByIndex** can…
60 | irregularIndexes | number[] | No | Indexes of the grid item with an irregular size in the grid.…
61 …item with an irregular size. This parameter is used together with **irregularIndexes**. In version…
924 This example uses **irregularIndexes** and **onGetIrregularSizeByIndex** in **GridLayoutOptions**.
935 irregularIndexes: [0, 6], // The grid item whose indexes are 0 and 6 occupies one row.
940irregularIndexes: [0, 7], // The number of columns occupied by the grid item whose indexes are 0 a…
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_grid.cpp180 option.irregularIndexes.emplace(indexNum); in SetGridLayoutOptions()
/ohos5.0/docs/en/application-dev/ui/
H A Darkts-layout-development-create-grid.md73 …ontainer-grid.md#gridlayoutoptions10) when creating the grid. Use **irregularIndexes** and **onGet…
/ohos5.0/docs/zh-cn/application-dev/quick-start/
H A Darkts-new-rendering-control-repeat.md703 irregularIndexes: [10]

12