Home
last modified time | relevance | path

Searched refs:GridLayoutOptions (Results 1 – 25 of 33) sorted by relevance

12

/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/grid/irregular/
H A Dirregular_matrics.cpp19 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 Dirregular_matrices.h23 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 Dgrid_irregular_filler_test.cpp156 GridLayoutOptions option;
232 GridLayoutOptions option;
272 GridLayoutOptions option;
H A Dgrid_layout_range_solver_test.cpp94 GridLayoutOptions option;
134 GridLayoutOptions option;
/ohos5.0/docs/zh-cn/application-dev/performance/
H A Dgrid_optimization.md116 ## 使用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 Dgrid_option_layout_test_ng.cpp38 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 Dlayout_info_test.cpp37 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 Dgrid_layout_options.h56 struct GridLayoutOptions { struct
61 bool operator==(const GridLayoutOptions& options) const argument
67 bool operator!=(const GridLayoutOptions& options) const
H A Dgrid_layout_property.h142 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 Dgrid_layout_info.h283 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 Dgrid_layout_property.cpp104 void GridLayoutProperty::UpdateIrregularFlag(const GridLayoutOptions& layoutOptions) const in UpdateIrregularFlag()
123 void GridLayoutProperty::OnLayoutOptionsUpdate(const GridLayoutOptions& layoutOptions) const in OnLayoutOptionsUpdate()
H A Dgrid_model_ng.h35 void SetLayoutOptions(GridLayoutOptions options) override;
111 static void SetLayoutOptions(FrameNode* frameNode, GridLayoutOptions& options);
H A Dgrid_model.h43 virtual void SetLayoutOptions(GridLayoutOptions options) = 0;
H A Dgrid_layout_info.cpp292 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 Dgrid_model_ng.cpp67 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 Dgrid_layout_range_solver.h106 const GridLayoutOptions* opts_;
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-container-grid.md36 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 Dgrid_scroll_with_options_layout_algorithm.h45 int32_t itemIndex, const GridLayoutOptions& options, int32_t firstIrregularIndex);
H A Dgrid_scroll_with_options_layout_algorithm.cpp191 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 Darkts-layout-development-create-grid.md70 除了大小相同的等比例网格布局,由不同大小的网格组成不均匀分布的网格布局场景在实际应用中十分常见,如下图所示。在Grid组件中,可以通过创建Grid时传入合适的[GridLayoutOptions](…
88 layoutOptions: GridLayoutOptions = {
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/
H A Dgrid_model_impl.h29 void SetLayoutOptions(GridLayoutOptions options) override {}; in SetLayoutOptions()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_component/src/
H A DArkGrid.ts197 class GridLayoutOptionsModifier extends ModifierWithKey<GridLayoutOptions> {
198 constructor(value: GridLayoutOptions) {
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_grid.cpp115 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 Dts-container-grid.md36 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 Darkts_native_grid_bridge.cpp80 …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()

12