Home
last modified time | relevance | path

Searched refs:getSizeByIndex (Results 1 – 16 of 16) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/grid/irregular/
H A Dirregular_matrics.cpp45 option.getSizeByIndex = std::move(onGetIrregularSizeByIndex); in GetOptionDemo1()
72 option.getSizeByIndex = std::move(onGetIrregularSizeByIndex); in GetOptionDemo2()
102 option.getSizeByIndex = std::move(onGetIrregularSizeByIndex); in GetOptionDemo5()
136 option.getSizeByIndex = std::move(onGetIrregularSizeByIndex); in GetOptionDemo8()
158 option.getSizeByIndex = std::move(onGetIrregularSizeByIndex); in GetOptionDemo9()
188 option.getSizeByIndex = std::move(onGetIrregularSizeByIndex); in GetOptionDemo10()
212 option.getSizeByIndex = std::move(onGetIrregularSizeByIndex); in GetOptionDemo11()
231 option.getSizeByIndex = std::move(onGetIrregularSizeByIndex); in GetOptionDemo12()
254 option.getSizeByIndex = std::move(onGetIrregularSizeByIndex); in GetOptionDemo13()
274 option.getSizeByIndex = std::move(onGetIrregularSizeByIndex); in GetOptionDemo14()
[all …]
H A Dgrid_irregular_filler_test.cpp169 option.getSizeByIndex = std::move(onGetIrregularSizeByIndex);
237 option.getSizeByIndex = std::move(onGetIrregularSizeByIndex);
H A Dgrid_layout_range_solver_test.cpp106 option.getSizeByIndex = std::move(onGetIrregularSizeByIndex);
151 option.getSizeByIndex = std::move(onGetIrregularSizeByIndex);
H A Dgrid_irregular_layout_test.cpp1893 option.getSizeByIndex = std::move(onGetIrregularSizeByIndex);
1937 option.getSizeByIndex = std::move(onGetIrregularSizeByIndex);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/
H A Dgrid_layout_options.h59 GetSizeByIndex getSizeByIndex; // irregular sizes member
64 … (!getSizeByIndex && !options.getSizeByIndex) && (!getRectByIndex && !options.getRectByIndex);
H A Dgrid_layout_property.cpp111 CHECK_NULL_VOID(layoutOptions.getSizeByIndex); in UpdateIrregularFlag()
115 auto size = layoutOptions.getSizeByIndex(idx); in UpdateIrregularFlag()
H A Dgrid_layout_info.cpp300 if (options.getSizeByIndex) { in GetContentOffset()
348 if (options.getSizeByIndex) { in GetContentHeight()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/grid_scroll/
H A Dgrid_scroll_with_options_layout_algorithm.cpp139 if (!options.getSizeByIndex) { in GetCrossStartAndSpan()
195 auto crossSpan = options.getSizeByIndex(firstIrregularIndex).GetCrossSize(axis); in InitIrregularItemsPosition()
231 auto crossSpan = options.getSizeByIndex(index).GetCrossSize(gridLayoutInfo_.axis_); in GetCrossStartAndSpanWithUserFunction()
246 …auto crossSpan = isRegularItem ? 1 : options.getSizeByIndex(itemIndex).GetCrossSize(gridLayoutInfo… in GetCrossStartAndSpanWithUserFunction()
273 if (options.getSizeByIndex) { in SkipIrregularLines()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/grid/
H A Dgrid_option_layout_test_ng.cpp46 option.getSizeByIndex = std::move(onGetIrregularSizeByIndex);
105 option.getSizeByIndex = std::move(onGetIrregularSizeByIndex);
140 option.getSizeByIndex = std::move(onGetIrregularSizeByIndex);
177 option.getSizeByIndex = std::move(onGetIrregularSizeByIndex);
209 option.getSizeByIndex = std::move(onGetIrregularSizeByIndex);
273 option.getSizeByIndex = std::move(onGetIrregularSizeByIndex);
370 option.getSizeByIndex = std::move(onGetIrregularSizeByIndex);
439 option.getSizeByIndex = std::move(onGetIrregularSizeByIndex);
479 option.getSizeByIndex = nullptr;
771 option.getSizeByIndex = std::move(onGetIrregularSizeByIndex);
H A Dgrid_common_test_ng.cpp307 option.getSizeByIndex = std::move(onGetIrregularSizeByIndex);
H A Dgrid_scroller_test_ng.cpp310 option.getSizeByIndex = std::move(onGetIrregularSizeByIndex);
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_water_flow_sections.cpp149 auto getSizeByIndex = obj->GetProperty("onGetItemMainSizeByIndex"); in ParseSectionOptions() local
150 if (!getSizeByIndex->IsFunction()) { in ParseSectionOptions()
156 … JSRef<JSObject>(), JSRef<JSFunc>::Cast(getSizeByIndex))](int32_t index) { in ParseSectionOptions()
H A Djs_grid.cpp117 auto getSizeByIndex = obj->GetProperty("onGetIrregularSizeByIndex"); in ParseGetGridItemSize() local
118 if (getSizeByIndex->IsFunction()) { in ParseGetGridItemSize()
121 … JSRef<JSFunc>::Cast(getSizeByIndex))](int32_t index) { in ParseGetGridItemSize()
131 option.getSizeByIndex = std::move(onGetIrregularSizeByIndex); in ParseGetGridItemSize()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/irregular/
H A Dgrid_layout_utils.cpp28 if (!opts.getSizeByIndex) { in GetItemSize()
33 size = opts.getSizeByIndex(idx); in GetItemSize()
H A Dgrid_layout_range_solver.cpp177 if (opts_->getSizeByIndex) { in CheckMultiRow()
178 auto size = opts_->getSizeByIndex(itemIdx); in CheckMultiRow()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/
H A Darkts_native_grid_bridge.cpp80 void ParseGetGridItemSize(const EcmaVM* vm, const Local<JSValueRef>& getSizeByIndex, GridLayoutOpti… in ParseGetGridItemSize() argument
82 if (getSizeByIndex->IsFunction(vm)) { in ParseGetGridItemSize()
83 Local<panda::FunctionRef> functionRef = getSizeByIndex->ToObject(vm); in ParseGetGridItemSize()
96 option.getSizeByIndex = std::move(onGetIrregularSizeByIndex); in ParseGetGridItemSize()