/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/grid_layout/ |
H A D | render_grid_col.cpp | 50 auto gridCol = AceType::DynamicCast<GridColComponent>(component_); in GetSpan() local 51 if (!gridCol) { in GetSpan() 55 return gridCol->GetSpan(sizeType); in GetSpan() 60 auto gridCol = AceType::DynamicCast<GridColComponent>(component_); in GetOffset() local 61 if (!gridCol) { in GetOffset() 65 return gridCol->GetOffset(sizeType); in GetOffset() 70 auto gridCol = AceType::DynamicCast<GridColComponent>(component_); in GetOrder() local 71 if (!gridCol) { in GetOrder() 75 return gridCol->GetOrder(sizeType); in GetOrder()
|
H A D | render_grid_row.cpp | 221 if (!gridCol) { in LayoutEachChild() 226 gridCol->SetSizeType(sizeType); in LayoutEachChild() 230 gridColChildren.emplace_back(gridCol); in LayoutEachChild() 231 gridColToNodeMap[gridCol] = child; in LayoutEachChild() 260 if (!gridCol) { in CalculateOffsetOfNewline() 265 auto offset = gridCol->GetOffset(sizeType); in CalculateOffsetOfNewline() 268 newLineOffset.offset = gridCol->GetOffset(sizeType); in CalculateOffsetOfNewline() 285 if (!gridCol) { in GetRelativeOffset() 289 return gridCol->GetOffset(sizeType); in GetRelativeOffset() 295 if (!gridCol) { in GetGridColSpan() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/ |
H A D | grid_col_model_impl.cpp | 42 auto gridCol = AceType::DynamicCast<V2::GridColComponent>(component); in SetSpan() local 43 if (gridCol) { in SetSpan() 44 gridCol->SetSpan(span); in SetSpan() 51 auto gridCol = AceType::DynamicCast<V2::GridColComponent>(component); in SetOffset() local 52 if (gridCol) { in SetOffset() 53 gridCol->SetOffset(offset); in SetOffset() 60 auto gridCol = AceType::DynamicCast<V2::GridColComponent>(component); in SetOrder() local 61 if (gridCol) { in SetOrder() 62 gridCol->SetOrder(order); in SetOrder()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_component/src/ |
H A D | ArkGridCol.ts | 24 getUINativeModule().gridCol.resetSpan(node); 27 getUINativeModule().gridCol.setSpan(node, this.value, 30 getUINativeModule().gridCol.setSpan(node, this.value.xs, 57 getUINativeModule().gridCol.resetGridColOffset(node); 60 getUINativeModule().gridCol.setGridColOffset(node, this.value, 63 getUINativeModule().gridCol.setGridColOffset(node, this.value.xs, 90 getUINativeModule().gridCol.resetOrder(node); 93 getUINativeModule().gridCol.setOrder(node, this.value, 96 getUINativeModule().gridCol.setOrder(node, this.value.xs,
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid_row/ |
H A D | grid_row_layout_algorithm.cpp | 60 void CalculateOffsetOfNewline(const RefPtr<GridColLayoutProperty>& gridCol, int32_t currentChildSpa… in CalculateOffsetOfNewline() argument 64 int32_t offset = gridCol->GetOffset(sizeType); in CalculateOffsetOfNewline() 133 auto gridCol = AceType::DynamicCast<GridColLayoutProperty>(child->GetLayoutProperty()); in MeasureChildren() local 134 if (!gridCol) { in MeasureChildren() 137 gridCol->UpdateSizeType(sizeType); in MeasureChildren() 140 auto span = std::min(gridCol->GetSpan(sizeType), columnNum); in MeasureChildren() 144 … CalculateOffsetOfNewline(gridCol, span, columnNum - offset, columnNum, sizeType, newLineOffset); in MeasureChildren()
|
/ohos5.0/foundation/arkui/ace_engine/advanced_ui_component/gridobjectsortcomponent/source/ |
H A D | GridObjectSortComponent.ets | 486 const gridCol: number = this.colNum; 487 const lastCol: number = Math.trunc(index % gridCol); 492 x = x + this.blockWidth * (gridCol - 1); 502 if (lastCol === gridCol - 1) { 503 x = x - this.blockWidth * (gridCol - 1);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/ |
H A D | arkts_native_api_impl_bridge.cpp | 1696 auto gridCol = panda::ObjectRef::New(vm); in GetArkUINativeModule() local 1697 gridCol->Set(vm, panda::StringRef::NewFromUtf8(vm, "setSpan"), in GetArkUINativeModule() 1699 gridCol->Set(vm, panda::StringRef::NewFromUtf8(vm, "resetSpan"), in GetArkUINativeModule() 1701 gridCol->Set(vm, panda::StringRef::NewFromUtf8(vm, "setGridColOffset"), in GetArkUINativeModule() 1703 gridCol->Set(vm, panda::StringRef::NewFromUtf8(vm, "resetGridColOffset"), in GetArkUINativeModule() 1705 gridCol->Set(vm, panda::StringRef::NewFromUtf8(vm, "setOrder"), in GetArkUINativeModule() 1707 gridCol->Set(vm, panda::StringRef::NewFromUtf8(vm, "resetOrder"), in GetArkUINativeModule() 1709 object->Set(vm, panda::StringRef::NewFromUtf8(vm, "gridCol"), gridCol); in GetArkUINativeModule()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/ |
H A D | arkComponent.js | 6494 getUINativeModule().gridCol.resetSpan(node); 6498 …getUINativeModule().gridCol.setSpan(node, this.value, this.value, this.value, this.value, this.val… 6501 …getUINativeModule().gridCol.setSpan(node, this.value.xs, this.value.sm, this.value.md, this.value.… 6529 getUINativeModule().gridCol.resetGridColOffset(node); 6533 …getUINativeModule().gridCol.setGridColOffset(node, this.value, this.value, this.value, this.value,… 6536 …getUINativeModule().gridCol.setGridColOffset(node, this.value.xs, this.value.sm, this.value.md, th… 6564 getUINativeModule().gridCol.resetOrder(node); 6568 …getUINativeModule().gridCol.setOrder(node, this.value, this.value, this.value, this.value, this.va… 6571 …getUINativeModule().gridCol.setOrder(node, this.value.xs, this.value.sm, this.value.md, this.value…
|