/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/grid/irregular/ |
H A D | irregular_matrics.cpp | 19 GridLayoutOptions GetOptionDemo1() in GetOptionDemo1() 21 GridLayoutOptions option; in GetOptionDemo1() 51 GridLayoutOptions option; in GetOptionDemo2() 78 GridLayoutOptions option; in GetOptionDemo5() 108 GridLayoutOptions option; in GetOptionDemo6() 120 GridLayoutOptions option; in GetOptionDemo8() 142 GridLayoutOptions option; in GetOptionDemo9() 164 GridLayoutOptions option; in GetOptionDemo10() 194 GridLayoutOptions option; in GetOptionDemo11() 218 GridLayoutOptions option; in GetOptionDemo12() [all …]
|
H A D | irregular_matrices.h | 23 GridLayoutOptions GetOptionDemo1(); 34 GridLayoutOptions GetOptionDemo2(); 78 GridLayoutOptions GetOptionDemo5(); 94 GridLayoutOptions GetOptionDemo6(); 122 GridLayoutOptions GetOptionDemo8(); 132 GridLayoutOptions GetOptionDemo9(); 143 GridLayoutOptions GetOptionDemo10(); 153 GridLayoutOptions GetOptionDemo11(); 164 GridLayoutOptions GetOptionDemo12(); 175 GridLayoutOptions GetOptionDemo13(); [all …]
|
H A D | grid_irregular_filler_test.cpp | 156 GridLayoutOptions option; 232 GridLayoutOptions option; 272 GridLayoutOptions option;
|
H A D | grid_layout_range_solver_test.cpp | 94 GridLayoutOptions option; 134 GridLayoutOptions option;
|
/ohos5.0/docs/zh-cn/application-dev/performance/ |
H A D | grid_optimization.md | 116 ## 使用GridLayoutOptions提升Grid性能 118 GridLayoutOptions布局选项,配合rowsTemplate、columnsTemplate仅设置其中一个的Grid使用,可以替代通过columnStart/columnEnd控制Gri… 122 …会导致该场景下Grid渲染耗时过长时,应该考虑使用GridLayoutOptions提升性能。使用columnStart/columnEnd、rowStart/rowEnd在重新渲染时会重建所有G… 124 …时过长时,应该考虑使用GridLayoutOptions提升性能。使用columnStart/columnEnd、rowStart/rowEnd布局,在scrollToIndex滑动指定Index… 229 使用GridLayoutOptions设置GridItem大小,布局效果和反例保持一致。 282 layoutOptions: GridLayoutOptions = { 298 Text('使用GridLayoutOptions设置GridItem大小').fontColor(0xCCCCCC).fontSize(9).width('90%') 343 如图3所示,使用GridLayoutOptions设置GridItem大小的布局方式,从自定义打点标签“H:useGridLayoutOptions”上可以看出从调用scrollToIndex到查找… 345 图3 使用GridLayoutOptions的打点信息 351 图4 使用GridLayoutOptions的放大trace标签信息 [all …]
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/grid/ |
H A D | grid_option_layout_test_ng.cpp | 38 GridLayoutOptions option; 70 GridLayoutOptions option; 97 GridLayoutOptions option; 132 GridLayoutOptions option; 169 GridLayoutOptions option; 201 GridLayoutOptions option; 234 GridLayoutOptions option; 265 GridLayoutOptions option; 362 GridLayoutOptions option; 426 GridLayoutOptions option; [all …]
|
H A D | layout_info_test.cpp | 37 GridLayoutOptions option { 71 GridLayoutOptions option { 240 GridLayoutOptions option { 690 GridLayoutOptions option;
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/ |
H A D | grid_layout_options.h | 56 struct GridLayoutOptions { struct 61 bool operator==(const GridLayoutOptions& options) const argument 67 bool operator!=(const GridLayoutOptions& options) const
|
H A D | grid_layout_property.h | 142 ACE_DEFINE_PROPERTY_ITEM_FUNC_WITHOUT_GROUP(LayoutOptions, GridLayoutOptions); 143 void OnLayoutOptionsUpdate(const GridLayoutOptions& layoutOptions) const; 169 void UpdateIrregularFlag(const GridLayoutOptions& layoutOptions) const;
|
H A D | grid_layout_info.h | 283 float GetContentOffset(const GridLayoutOptions& options, float mainGap) const; 300 float GetContentHeight(const GridLayoutOptions& options, int32_t endIdx, float mainGap) const; 301 void SkipStartIndexByOffset(const GridLayoutOptions& options, float mainGap); 424 …const GridLayoutOptions& options, float mainGap, float& regularHeight, float& irregularHeight) con…
|
H A D | grid_layout_property.cpp | 104 void GridLayoutProperty::UpdateIrregularFlag(const GridLayoutOptions& layoutOptions) const in UpdateIrregularFlag() 123 void GridLayoutProperty::OnLayoutOptionsUpdate(const GridLayoutOptions& layoutOptions) const in OnLayoutOptionsUpdate()
|
H A D | grid_model_ng.h | 35 void SetLayoutOptions(GridLayoutOptions options) override; 111 static void SetLayoutOptions(FrameNode* frameNode, GridLayoutOptions& options);
|
H A D | grid_model.h | 43 virtual void SetLayoutOptions(GridLayoutOptions options) = 0;
|
H A D | grid_layout_info.cpp | 292 float GridLayoutInfo::GetContentOffset(const GridLayoutOptions& options, float mainGap) const in GetContentOffset() 319 …const GridLayoutOptions& options, float mainGap, float& regularHeight, float& irregularHeight) con… in GetLineHeights() 343 float GridLayoutInfo::GetContentHeight(const GridLayoutOptions& options, int32_t endIdx, float main… in GetContentHeight() 418 void GridLayoutInfo::SkipStartIndexByOffset(const GridLayoutOptions& options, float mainGap) in SkipStartIndexByOffset()
|
H A D | grid_model_ng.cpp | 67 void GridModelNG::SetLayoutOptions(GridLayoutOptions options) in SetLayoutOptions() 608 void GridModelNG::SetLayoutOptions(FrameNode* frameNode, GridLayoutOptions& options) in SetLayoutOptions()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/irregular/ |
H A D | grid_layout_range_solver.h | 106 const GridLayoutOptions* opts_;
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-container-grid.md | 36 Grid(scroller?: Scroller, layoutOptions?: GridLayoutOptions) 47 | layoutOptions<sup>10+</sup> | [GridLayoutOptions](#gridlayoutoptions10对象说明) | 否 | Grid布局选项。 | 49 ## GridLayoutOptions<sup>10+</sup>对象说明 760 可以使用GridLayoutOptions中的onGetRectByIndex指定GridItem的位置和大小。 770 layoutOptions3: GridLayoutOptions = { 812 Text('GridLayoutOptions的使用:onGetRectByIndex。').fontColor(0xCCCCCC).fontSize(9).width('90%') 926 GridLayoutOptions的使用:irregularIndexes与onGetIrregularSizeByIndex。 935 layoutOptions1: GridLayoutOptions = { 940 layoutOptions2: GridLayoutOptions = {
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/grid_scroll/ |
H A D | grid_scroll_with_options_layout_algorithm.h | 45 int32_t itemIndex, const GridLayoutOptions& options, int32_t firstIrregularIndex);
|
H A D | grid_scroll_with_options_layout_algorithm.cpp | 191 const GridLayoutOptions& options, int32_t firstIrregularIndex, Axis axis, int32_t crossCount) in InitIrregularItemsPosition() 209 int32_t itemIndex, const GridLayoutOptions& options, int32_t firstIrregularIndex) in GetCrossStartAndSpanWithUserFunction()
|
/ohos5.0/docs/zh-cn/application-dev/ui/ |
H A D | arkts-layout-development-create-grid.md | 70 除了大小相同的等比例网格布局,由不同大小的网格组成不均匀分布的网格布局场景在实际应用中十分常见,如下图所示。在Grid组件中,可以通过创建Grid时传入合适的[GridLayoutOptions](… 88 layoutOptions: GridLayoutOptions = {
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/ |
H A D | grid_model_impl.h | 29 void SetLayoutOptions(GridLayoutOptions options) override {}; in SetLayoutOptions()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_component/src/ |
H A D | ArkGrid.ts | 197 class GridLayoutOptionsModifier extends ModifierWithKey<GridLayoutOptions> { 198 constructor(value: GridLayoutOptions) {
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_grid.cpp | 115 void ParseGetGridItemSize(const JSCallbackInfo& info, JSRef<JSObject>& obj, GridLayoutOptions& opti… in ParseGetGridItemSize() 135 void ParseGetGridItemRect(const JSCallbackInfo& info, JSRef<JSObject>& obj, GridLayoutOptions& opti… in ParseGetGridItemRect() 160 GridLayoutOptions option; in SetGridLayoutOptions()
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-container-grid.md | 36 Grid(scroller?: Scroller, layoutOptions?: GridLayoutOptions) 47 | layoutOptions<sup>10+</sup> | [GridLayoutOptions](#gridlayoutoptions10) | No| Grid layout options… 49 ## GridLayoutOptions<sup>10+</sup> 758 …f rows and columns, for which you can use **onGetRectByIndex** in **GridLayoutOptions** to specify… 768 layoutOptions3: GridLayoutOptions = { 810 … Text('Use of GridLayoutOptions: onGetRectByIndex').fontColor(0xCCCCCC).fontSize(9).width('90%') 924 This example uses **irregularIndexes** and **onGetIrregularSizeByIndex** in **GridLayoutOptions**. 933 layoutOptions1: GridLayoutOptions = { 938 layoutOptions2: GridLayoutOptions = {
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/ |
H A D | arkts_native_grid_bridge.cpp | 80 …tGridItemSize(const EcmaVM* vm, const Local<JSValueRef>& getSizeByIndex, GridLayoutOptions& option) in ParseGetGridItemSize() 100 …tGridItemRect(const EcmaVM* vm, const Local<JSValueRef>& getRectByIndex, GridLayoutOptions& option) in ParseGetGridItemRect() 820 GridLayoutOptions options; in SetGridLayoutOptions()
|