Home
last modified time | relevance | path

Searched refs:startLine (Results 1 – 8 of 8) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/irregular/
H A Dgrid_layout_range_solver.cpp132 auto [startLine, startItem] = CheckMultiRow(idx); in SolveBackward()
134 newOffset -= info_->GetHeightInRange(startLine, idx, mainGap); in SolveBackward()
135 return { startLine, startItem, newOffset }; in SolveBackward()
150 int32_t startLine = idx; in CheckMultiRow() local
168 if (r < startLine) { in CheckMultiRow()
169 startLine = r; in CheckMultiRow()
186 return { startLine, startItem }; in CheckMultiRow()
H A Dgrid_irregular_layout_algorithm.cpp393 void AdjustStartOffset(const std::map<int32_t, float>& lineHeights, int32_t startLine, int32_t cach… in AdjustStartOffset() argument
396 auto startLineIt = lineHeights.lower_bound(startLine); in AdjustStartOffset()
555 void AddLineHeight(float& height, int32_t curLine, int32_t startLine, const std::map<int32_t, float… in AddLineHeight() argument
562 height += height / std::abs(curLine - startLine); in AddLineHeight()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/
H A Dgrid_layout_info.h79 auto startLine = gridMatrix_.find(startMainLineIndex_); in UpdateStartIndexByStartLine() local
80 if (startLine == gridMatrix_.end()) { in UpdateStartIndexByStartLine()
83 if (startLine->second.empty()) { in UpdateStartIndexByStartLine()
86 startIndex_ = startLine->second.begin()->second; in UpdateStartIndexByStartLine()
155 float GetHeightInRange(int32_t startLine, int32_t endLine, float mainGap) const;
225 … std::pair<int32_t, float> FindItemCenter(int32_t startLine, int32_t lineCnt, float mainGap) const;
432 int32_t FindItemCount(int32_t startLine, int32_t endLine) const;
H A Dgrid_layout_info.cpp213 auto firstLine = gridMatrix_.find(startLine); in FindItemCount()
216 for (auto i = startLine; i <= endLine; ++i) { in FindItemCount()
228 for (auto i = endLine; i >= startLine; --i) { in FindItemCount()
396 auto startLine = static_cast<float>(startMainLineIndex_); in GetIrregularOffset() local
398 return estTotal + startLine * mainGap - currentOffset_; in GetIrregularOffset()
863 auto startLine = gridMatrix_.find(startMainLineIndex_); in UpdateStartIndexForExtralOffset() local
864 CHECK_NULL_VOID(startLine != gridMatrix_.end() && (!startLine->second.empty())); in UpdateStartIndexForExtralOffset()
865 startIndex_ = startLine->second.begin()->second; in UpdateStartIndexForExtralOffset()
933 if (endLine <= startLine) { in GetHeightInRange()
958 float halfLen = (GetHeightInRange(startLine, startLine + lineCnt, mainGap) - mainGap) / 2.0f; in FindItemCenter()
[all …]
H A Dgrid_layout_base_algorithm.cpp26 const int32_t startLine = std::max(gridLayoutInfo_.startMainLineIndex_ - cacheCount, 0); in AdjustChildrenHeight() local
28 for (int i = startLine; i <= endLine; i++) { in AdjustChildrenHeight()
/ohos5.0/base/print/print_fwk/utils/include/
H A Dprint_ipp_over_usb_util.h43 …static void MakeHeader(size_t startLine, size_t endline, const uint8_t *data, httplib::Response &h…
102 inline void PrintIppOverUsbUtil::MakeHeader(size_t startLine, size_t endline, const uint8_t *data, … in MakeHeader() argument
105 size_t theSplitIndex = startLine; // ":" 所在的位置 in MakeHeader()
111 for (size_t i = startLine; i < theSplitIndex; i++) { in MakeHeader()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/grid_scroll/
H A Dgrid_scroll_layout_algorithm.cpp535 if (startLine == gridLayoutInfo_.gridMatrix_.end() || startLine->second.empty()) { in FillOneLineForwardWithoutUpdatingStartIndex()
794 startLine = item.first; in IsIndexInMatrix()
891 int32_t startLine = 0; in ScrollToIndexAuto() local
892 if (IsIndexInMatrix(targetIndex, startLine)) { in ScrollToIndexAuto()
898 …if (startLine < gridLayoutInfo_.endMainLineIndex_ && startLine > gridLayoutInfo_.startMainLineInde… in ScrollToIndexAuto()
913 gridLayoutInfo_.startMainLineIndex_ = startLine; in ScrollToIndexAuto()
941 int32_t startLine = 0; in ScrollToIndexStart() local
943 if (IsIndexInMatrix(targetIndex, startLine)) { in ScrollToIndexStart()
978 int32_t startLine = 0; in UpdateCurrentOffsetForJumpTo() local
2179 int32_t startLine = 0; in GetResetMode() local
[all …]
H A Dgrid_scroll_layout_algorithm.h129 bool IsIndexInMatrix(int32_t index, int32_t& startLine);