Home
last modified time | relevance | path

Searched refs:totalHeight (Results 1 - 18 of 18) sorted by relevance

/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/
H A Dgrid_layout_info.h109 float totalHeight = 0; in GetAverageLineHeight() local
114 totalHeight += record.second; in GetAverageLineHeight()
117 return totalRow > 0 ? totalHeight / totalRow : 0; in GetAverageLineHeight()
123 float totalHeight = 0; in GetStartLineOffset() local
126 totalHeight += (iter->second + mainGap); in GetStartLineOffset()
128 return totalHeight - currentOffset_; in GetStartLineOffset()
133 float totalHeight = 0.0f; in GetTotalLineHeight() local
135 totalHeight += (iter.second + mainGap); in GetTotalLineHeight()
137 return (removeLastGap) ? totalHeight - mainGap : totalHeight; in GetTotalLineHeight()
[all...]
H A Dgrid_layout_info.cpp362 float totalHeight = AddLinesInBetween(-1, firstIrregularIndex, crossCount_, regularHeight); in GetContentHeight() local
368 totalHeight += irregularHeight; in GetContentHeight()
369 totalHeight += AddLinesInBetween(lastIndex, idx, crossCount_, regularHeight); in GetContentHeight()
373 totalHeight += AddLinesInBetween(lastIndex, endIdx, crossCount_, regularHeight); in GetContentHeight()
374 totalHeight -= mainGap; in GetContentHeight()
375 return totalHeight; in GetContentHeight()
439 float totalHeight = AddLinesInBetween(-1, firstIrregularIndex, crossCount_, regularHeight); in SkipStartIndexByOffset() local
440 int32_t lastIndex = GreatNotEqual(totalHeight, targetContent) ? 0 : firstIrregularIndex; in SkipStartIndexByOffset()
444 if (GreatOrEqual(totalHeight, targetContent)) { in SkipStartIndexByOffset()
447 lastHeight = totalHeight; in SkipStartIndexByOffset()
990 float totalHeight = 0.0f; GetHeightInRange() local
[all...]
H A Dgrid_pattern.cpp1592 float totalHeight = info.GetTotalLineHeight(mainGap);
1593 return totalHeight - heightInView;
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/menu_item_group/
H A Dmenu_item_group_layout_algorithm.cpp50 float totalHeight = 0.0f; in Measure() local
59 totalHeight += headerPadding; in Measure()
63 totalHeight += (minItemHeight > headerHeight) ? minItemHeight : headerHeight; in Measure()
91 float endPos = totalHeight + itemHeight; in Measure()
92 itemPosition_[currentIndex] = { totalHeight, endPos }; in Measure()
93 totalHeight = endPos; in Measure()
100 totalHeight += (minItemHeight > footerHeight) ? minItemHeight : footerHeight; in Measure()
106 totalHeight += footerPadding; in Measure()
107 menuItemGroupSize.SetHeight(totalHeight); in Measure()
/foundation/arkui/ace_engine/test/unittest/core/pattern/grid/
H A Dgrid_cache_layout_test_ng.cpp121 float totalHeight = ITEM_HEIGHT * 10; in HWTEST_F() local
125 float offsetY = -totalHeight + floor(index / colsNumber) * ITEM_HEIGHT + GRID_HEIGHT; in HWTEST_F()
149 float totalHeight = ITEM_HEIGHT * 10; in HWTEST_F() local
156 float offsetY = -totalHeight + childProps->GetMainIndex().value_or(0) * ITEM_HEIGHT + GRID_HEIGHT; in HWTEST_F()
185 float totalHeight = ITEM_HEIGHT * 7; in HWTEST_F() local
192 float offsetY = -totalHeight + childProps->GetMainIndex().value_or(0) * ITEM_HEIGHT + GRID_HEIGHT; in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/
H A Dlist_height_offset_calculator.h123 float totalHeight = 0.0f; in GetLazyForEachIndexAverageHeight() local
127 totalHeight += itor->second.endPos - itor->second.startPos; in GetLazyForEachIndexAverageHeight()
145 totalHeight += group->GetEstimateHeight( in GetLazyForEachIndexAverageHeight()
148 totalHeight += itor->second.endPos - itor->second.startPos; in GetLazyForEachIndexAverageHeight()
156 return totalHeight / itemCount; in GetLazyForEachIndexAverageHeight()
H A Dlist_item_group_pattern.cpp223 auto totalHeight = (layoutedItemInfo_.value().endPos - layoutedItemInfo_.value().startPos + spaceWidth_); in GetEstimateHeight() local
225 averageHeight = totalHeight / itemCount; in GetEstimateHeight()
234 float totalHeight = 0.0f; in GetEstimateHeight() local
239 totalHeight += headerMainSize; in GetEstimateHeight()
243 totalHeight += footerMainSize; in GetEstimateHeight()
245 return totalHeight + averageHeight * totalItem + paddingAndMargin - spaceWidth; in GetEstimateHeight()
H A Dlist_item_group_layout_algorithm.cpp820 auto totalHeight = (itemInfo.endPos - itemInfo.startPos + spaceWidth_); in CheckJumpForwardForBigOffset() local
822 averageHeight = totalHeight / itemCount; in CheckJumpForwardForBigOffset()
851 auto totalHeight = (itemInfo.endPos - itemInfo.startPos + spaceWidth_); in CheckJumpBackwardForBigOffset() local
853 averageHeight = totalHeight / itemCount; in CheckJumpBackwardForBigOffset()
1311 auto totalHeight = (itemInfo.endPos - itemInfo.startPos + spaceWidth_); in GetLayoutInfo() local
1313 info.averageHeight = totalHeight / itemCount; in GetLayoutInfo()
H A Dlist_layout_algorithm.cpp619 float totalHeight = itemPosition_.rbegin()->second.endPos - itemPosition_.begin()->second.startPos + spaceWidth_; in CheckJumpToIndex() local
620 float averageHeight = totalHeight / itemPosition_.size(); in CheckJumpToIndex()
/foundation/arkui/ace_engine/frameworks/core/components_v2/grid_layout/
H A Drender_grid_row.cpp145 double totalHeight = 0.0; in PerformLayout() local
164 totalHeight += currentRowHeight * newLineOffset.newLineCount + gutterInDouble.second; in PerformLayout()
200 totalHeight += currentRowHeight; in PerformLayout()
204 SetLayoutSize(Size(maxSize.Width(), totalHeight)); in PerformLayout()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid_row/
H A Dgrid_row_layout_algorithm.cpp115 float totalHeight = 0.0; in MeasureChildren() local
137 totalHeight += (currentRowHeight * newLineOffset.newLineCount + gutter.second); in MeasureChildren()
145 parentConstraint.maxSize.MinusHeight(totalHeight); in MeasureChildren()
160 newLineOffset.offsetY = totalHeight; in MeasureChildren()
169 return (totalHeight + currentRowHeight); in MeasureChildren()
/foundation/arkui/ace_engine/advanced_ui_component/tabtitlebar/interfaces/
H A Dtabtitlebar.js132 Column.height(TabTitleBar.totalHeight);
137 Canvas.height(TabTitleBar.totalHeight);
143 p8.fillRect(0, 0, TabTitleBar.gradientMaskWidth, TabTitleBar.totalHeight);
214 List.height(TabTitleBar.totalHeight);
287 this.GradientMask.bind(this)(this.leftContext2D, 0, TabTitleBar.totalHeight / 2, TabTitleBar.gradientMaskWidth,
288 TabTitleBar.totalHeight / 2);
290 this.GradientMask.bind(this)(this.rightContext2D, TabTitleBar.gradientMaskWidth, TabTitleBar.totalHeight / 2, 0,
291 TabTitleBar.totalHeight / 2);
299 __Common__.height(TabTitleBar.totalHeight);
369 TabTitleBar.totalHeight
[all...]
/foundation/arkui/ace_engine/advanced_ui_component/editabletitlebar/interfaces/
H A Deditabletitlebar.js258 Row.height(EditableTitleBar.totalHeight);
410 Column.height(EditableTitleBar.totalHeight);
433 maxHeight: this.subtitle ? EditableTitleBar.maxMainTitleHeight : EditableTitleBar.totalHeight,
460 maxHeight: this.title ? EditableTitleBar.maxSubTitleHeight : EditableTitleBar.totalHeight,
528 EditableTitleBar.totalHeight = EditableTitleBar.defaultHeight === EditableTitleBar.commonZero ? DEFAULT_TITLE_BAR_HEIGHT :
532 EditableTitleBar.maxMainTitleHeight = (EditableTitleBar.totalHeight - EditableTitleBar.titlePadding) * MAX_MAIN_TITLE_PERCENT;
533 EditableTitleBar.maxSubTitleHeight = (EditableTitleBar.totalHeight - EditableTitleBar.titlePadding) * MAX_SUB_TITLE_PERCENT;
/foundation/arkui/ui_lite/frameworks/components/
H A Dui_list.cpp386 float totalHeight = allItemsRect.GetHeight() + 2.0f * scrollBlankSize_; // 2: two blank spaces on both sides in UpdateScrollBar() local
388 if (totalHeight < height) { in UpdateScrollBar()
391 yScrollBar_->SetForegroundProportion(height / totalHeight); in UpdateScrollBar()
393 (totalHeight - height)); in UpdateScrollBar()
/foundation/arkui/ace_engine/frameworks/core/components/picker/
H A Drender_picker_base.cpp389 double totalHeight = columnParent_->GetLayoutSize().Height(); in LayoutColumns() local
410 layout.SetFixedSize(Size(columnWidth, totalHeight)); in LayoutColumns()
/foundation/arkui/ace_engine/advanced_ui_component/selecttitlebar/interfaces/
H A Dselecttitlebar.js132 Flex.height(SelectTitleBar.totalHeight);
435 SelectTitleBar.totalHeight = 56;
/foundation/arkui/ace_engine/advanced_ui_component/composetitlebar/interfaces/
H A Dcomposetitlebar.js98 Flex.height(ComposeTitleBar.totalHeight);
338 ComposeTitleBar.totalHeight = 56;
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/navigation/
H A Dtitle_bar_layout_algorithm.cpp933 auto totalHeight = NearZero(subtitleHeight) ? SINGLE_LINE_TITLEBAR_HEIGHT : DOUBLE_LINE_TITLEBAR_HEIGHT; in LayoutMenu() local
934 geometryNode->SetMarginFrameOffset(OffsetF { currentOffsetX, (totalHeight.ConvertToPx() - menuHeight_) / 2 }); in LayoutMenu()

Completed in 25 milliseconds