Home
last modified time | relevance | path

Searched refs:itemHeight (Results 1 - 25 of 42) sorted by relevance

12

/foundation/arkui/ace_engine/test/unittest/core/pattern/grid/irregular/
H A Dgrid_layout_range_solver_test.cpp317 constexpr float itemHeight = 500.0f; in HWTEST_F() local
318 CreateFixedHeightItems(1, itemHeight * 2 + 10.0f); in HWTEST_F()
319 CreateFixedHeightItems(1, itemHeight); in HWTEST_F()
320 CreateFixedHeightItems(1, itemHeight * 2 + 10.0f); in HWTEST_F()
321 CreateFixedHeightItems(19, itemHeight); in HWTEST_F()
322 CreateFixedHeightItems(1, itemHeight * 6 + 50.0f); in HWTEST_F()
323 CreateFixedHeightItems(77, itemHeight); in HWTEST_F()
349 constexpr float itemHeight = 300.0f; in HWTEST_F() local
350 CreateFixedHeightItems(1, itemHeight * 2 + 10.0f); in HWTEST_F()
351 CreateFixedHeightItems(1, itemHeight); in HWTEST_F()
434 constexpr float itemHeight = 790.0f; HWTEST_F() local
481 constexpr float itemHeight = 300.0f; HWTEST_F() local
514 constexpr float itemHeight = 790.0f; HWTEST_F() local
550 constexpr float itemHeight = 300.0f; HWTEST_F() local
699 constexpr float itemHeight = 300.0f; HWTEST_F() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/
H A Dlist_layout_algorithm.cpp641 float itemHeight = 0.0f; in UpdateSnapCenterContentOffset() local
643 itemHeight = itemPosition_.begin()->second.endPos - itemPosition_.begin()->second.startPos; in UpdateSnapCenterContentOffset()
644 contentStartOffset_ = std::max((contentMainSize_ - itemHeight) / 2.0f, 0.0f); in UpdateSnapCenterContentOffset()
647 itemHeight = itemPosition_.rbegin()->second.endPos - itemPosition_.rbegin()->second.startPos; in UpdateSnapCenterContentOffset()
648 contentEndOffset_ = std::max((contentMainSize_ - itemHeight) / 2.0f, 0.0f); in UpdateSnapCenterContentOffset()
1253 auto itemHeight = itemPosition_.begin()->second.endPos - itemPosition_.begin()->second.startPos + spaceWidth_; in FixPredictSnapOffsetAlignStart() local
1256 float maxPos = itemHeight * totalItemCount_ - spaceWidth_ - endPos; in FixPredictSnapOffsetAlignStart()
1271 if (std::abs(predictEndPos - index * itemHeight) < itemHeight / 2.0f) { in FixPredictSnapOffsetAlignStart()
1275 predictEndPos = index * itemHeight in FixPredictSnapOffsetAlignStart()
1293 auto itemHeight = itemPosition_.begin()->second.endPos - itemPosition_.begin()->second.startPos + spaceWidth_; FixPredictSnapOffsetAlignCenter() local
1333 auto itemHeight = itemPosition_.begin()->second.endPos - itemPosition_.begin()->second.startPos + spaceWidth_; FixPredictSnapOffsetAlignEnd() local
2221 float itemHeight = itemPosition_.begin()->second.endPos - itemPosition_.begin()->second.startPos; FindPredictSnapIndexInItemPositionsStart() local
2224 float itemHeight = positionInfo.second.endPos - positionInfo.second.startPos; FindPredictSnapIndexInItemPositionsStart() local
2263 float itemHeight = itemPosition_.rbegin()->second.endPos - itemPosition_.rbegin()->second.startPos; FindPredictSnapIndexInItemPositionsEnd() local
2307 float itemHeight = 0.0f; IsUniformHeightProbably() local
2331 float itemHeight = itemPosition_[index].endPos - itemPosition_[index].startPos; CalculatePredictSnapEndPositionByIndex() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/layout/top_down/
H A Dwater_flow_layout_algorithm.cpp175 auto itemHeight = GetMainAxisSize(itemSize, axis_); in MeasureToTarget() local
179 std::make_pair(position.startMainPos, itemHeight); in MeasureToTarget()
181 if (item->second.second != itemHeight) { in MeasureToTarget()
182 item->second.second = itemHeight; in MeasureToTarget()
337 auto itemHeight = GetMainAxisSize(itemSize, axis_); in FillViewport() local
341 std::make_pair(position.startMainPos, itemHeight); in FillViewport()
343 if (item->second.second != itemHeight) { in FillViewport()
345 "item size change. currentIdx:%{public}d,cacheHeight:%{public}f,itemHeight:%{public}f", in FillViewport()
346 currentIndex, item->second.second, itemHeight); in FillViewport()
347 item->second.second = itemHeight; in FillViewport()
[all...]
H A Dwater_flow_segmented_layout.cpp430 float itemHeight = WaterFlowLayoutUtils::GetUserDefHeight(sections_, seg, i); in MeasureToTarget() local
431 if (cacheDeadline || Negative(itemHeight)) { in MeasureToTarget()
432 auto item = MeasureItem(i, position.crossIndex, itemHeight, cacheDeadline.has_value()); in MeasureToTarget()
434 itemHeight = GetMeasuredHeight(item, axis_); in MeasureToTarget()
437 info_->RecordItem(i, position, itemHeight); in MeasureToTarget()
451 float itemHeight = WaterFlowLayoutUtils::GetUserDefHeight(sections_, info_->GetSegment(i), i); in Fill() local
452 auto item = MeasureItem(i, position.crossIndex, itemHeight, false); in Fill()
/foundation/arkui/ui_lite/test/unittest/components/
H A Dui_picker_unit_test.cpp155 const int16_t itemHeight = 10; in HWTEST_F() local
161 picker_->SetItemHeight(itemHeight); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/menu_item_group/
H A Dmenu_item_group_layout_algorithm.cpp85 float itemHeight; in Measure() local
87 itemHeight = childSize.Height() + margin.Height(); in Measure()
89 itemHeight = childSize.Height(); in Measure()
91 float endPos = totalHeight + itemHeight; in Measure()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/menu_item/
H A Dmenu_item_layout_algorithm.cpp200 auto itemHeight = GreatNotEqual(userHeight_, 0.0f) ? userHeight_ in MeasureItemViews() local
234 UpdateSelfSize(layoutWrapper, actualWidth, itemHeight, expandableHeight); in MeasureItemViews()
331 float width, float itemHeight, float expandableHeight) in UpdateSelfSize()
351 itemHeight += GetDividerStroke(layoutWrapper); in UpdateSelfSize()
354 auto height = std::max(itemHeight - bordersHeight, minItemHeight_); in UpdateSelfSize()
360 layoutWrapper->GetGeometryNode()->SetContentSize(SizeF(width, itemHeight)); in UpdateSelfSize()
330 UpdateSelfSize(LayoutWrapper* layoutWrapper, float width, float itemHeight, float expandableHeight) UpdateSelfSize() argument
H A Dmenu_item_layout_algorithm.h48 void UpdateSelfSize(LayoutWrapper* layoutWrapper, float width, float itemHeight, float expandableHeight);
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper_indicator/dot_indicator/
H A Ddot_indicator_paint_method.cpp157 auto itemHeight = static_cast<float>(paintProperty->GetItemHeightValue(swiperTheme->GetSize()).ConvertToPx()); in PaintHoverIndicator() local
165 itemHalfSizes.emplace_back(itemHeight * 0.5 * INDICATOR_ZOOM_IN_SCALE); in PaintHoverIndicator()
247 auto itemHeight = static_cast<float>(paintProperty->GetItemHeightValue(swiperTheme->GetSize()).ConvertToPx()); in PaintPressIndicator() local
254 auto itemHalfHeight = itemHeight * 0.5 * INDICATOR_ZOOM_IN_SCALE; in PaintPressIndicator()
281 auto itemHeight = itemHalfSizes[ITEM_HALF_HEIGHT] * 2; in CalculateNormalMargin() local
291 auto contentHeight = indicatorPadding + itemHeight + indicatorPadding; in CalculateNormalMargin()
292 if (selectedItemHeight > itemHeight) { in CalculateNormalMargin()
348 auto itemHeight = static_cast<float>(paintProperty->GetItemHeightValue(swiperTheme->GetSize()).ConvertToPx()); in CalculateLongPointCenterX() local
356 itemHalfSizes.emplace_back(itemHeight * 0.5); in CalculateLongPointCenterX()
487 auto itemHeight in UpdateBackground() local
[all...]
H A Ddot_indicator_modifier.h255 void SetItemHeight(const float itemHeight) in SetItemHeight() argument
257 itemHeight_ = itemHeight; in SetItemHeight()
H A Doverlength_dot_indicator_paint_method.cpp154 auto itemHeight = static_cast<float>(paintProperty->GetItemHeightValue(swiperTheme->GetSize()).ConvertToPx()); in CalculateLongPointCenterX() local
168 itemHalfSizes.emplace_back(itemHeight * HALF_FLOAT); in CalculateLongPointCenterX()
/foundation/arkui/ace_engine/test/unittest/core/pattern/grid/
H A Dgrid_layout_test_ng.cpp406 float itemHeight = 150.0f; in HWTEST_F() local
412 CreateGridItems(25, itemWidth, itemHeight); in HWTEST_F()
422 float offsetY = index / rowsNumber * (itemHeight + realRowsGap); in HWTEST_F()
423 RectF expectRect = RectF(offsetX, offsetY, itemWidth, itemHeight); in HWTEST_F()
H A Dgrid_scroll_layout_test_ng.cpp1059 * @tc.desc: Test Vertical Grid with maxcount and 0 itemHeight
1117 float itemHeight = 150.0f; in HWTEST_F() local
1122 CreateGridItems(25, itemWidth, itemHeight); in HWTEST_F()
1132 float offsetY = index % rowsNumber * (itemHeight + realRowsGap); in HWTEST_F()
1133 RectF expectRect = RectF(offsetX, offsetY, itemWidth, itemHeight); in HWTEST_F()
1146 float itemHeight = 150.0f; in HWTEST_F() local
1151 CreateGridItems(25, itemWidth, itemHeight); in HWTEST_F()
1161 float offsetY = index / rowsNumber * (itemHeight + realRowsGap); in HWTEST_F()
1162 RectF expectRect = RectF(offsetX, offsetY, itemWidth, itemHeight); in HWTEST_F()
H A Dgrid_scroller_event_test_ng.cpp52 double itemHeight = ITEM_HEIGHT; in HWTEST_F() local
53 EXPECT_TRUE(pattern_->OnScrollPosition(itemHeight, SCROLL_FROM_UPDATE)); in HWTEST_F()
54 EXPECT_TRUE(pattern_->OnScrollPosition(itemHeight, SCROLL_FROM_UPDATE)); in HWTEST_F()
55 EXPECT_TRUE(pattern_->OnScrollPosition(itemHeight, SCROLL_FROM_START)); in HWTEST_F()
64 EXPECT_TRUE(pattern_->OnScrollPosition(itemHeight, SCROLL_FROM_UPDATE)); in HWTEST_F()
65 EXPECT_TRUE(pattern_->OnScrollPosition(itemHeight, SCROLL_FROM_UPDATE)); in HWTEST_F()
66 EXPECT_TRUE(pattern_->OnScrollPosition(itemHeight, SCROLL_FROM_START)); in HWTEST_F()
68 EXPECT_TRUE(pattern_->OnScrollPosition(itemHeight, SCROLL_FROM_UPDATE)); in HWTEST_F()
H A Dgrid_attr_test_ng.cpp471 float itemHeight = 90.f; in HWTEST_F() local
472 int32_t rows = floor(GRID_HEIGHT / itemHeight); // 5 in HWTEST_F()
474 EXPECT_EQ(GetChildHeight(frameNode_, 0), itemHeight); in HWTEST_F() local
578 * @tc.cases: Set LayoutDirection COLUMN, set minCount maxCount, set smaller itemHeight in HWTEST_F()
582 float itemHeight = GRID_HEIGHT / maxCount - 100.f; // less than quarter of GRID_HEIGHT in HWTEST_F() local
588 CreateGridItems(10, ITEM_WIDTH, itemHeight); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_textpicker_ffi.cpp193 Dimension itemHeight(value.height, static_cast<DimensionUnit>(value.heightUnit)); in FfiOHOSAceFrameworkTextPickerDialogShow()
197 TextPickerDialogShow(*actualVec, value.selected, itemHeight, dialogEvent, cancelEvent); in FfiOHOSAceFrameworkTextPickerDialogShow()
/foundation/arkui/ace_engine/advanced_ui_component/composelistitem/interfaces/
H A Dcomposelistitem.js1236 this.__itemHeight = new ObservedPropertySimplePU(ItemHeight.FIRST_HEIGHT, this, "itemHeight");
1281 if (s2.itemHeight !== undefined) {
1282 this.itemHeight = s2.itemHeight;
1422 get itemHeight() {
1425 set itemHeight(h2) {
1505 this.itemHeight = OPERATEITEM_IMAGE_SIZE + SAFE_LIST_PADDING;
1511 this.itemHeight = ItemHeight.FIRST_HEIGHT;
1514 this.itemHeight = this.contentItem.iconStyle <= IconType.HEAD_SCULPTURE ?
1521 this.itemHeight
[all...]
/foundation/arkui/ace_engine/interfaces/native/node/
H A Dnative_node_extented.cpp344 indicator->itemHeight = ArkUI_OptionalFloat { 0, 0.0f }; in OH_ArkUI_SwiperIndicator_Create()
430 indicator->itemHeight.isSet = 1; in OH_ArkUI_SwiperIndicator_SetItemHeight()
431 indicator->itemHeight.value = value; in OH_ArkUI_SwiperIndicator_SetItemHeight()
437 return indicator->itemHeight.value; in OH_ArkUI_SwiperIndicator_GetItemHeight()
H A Dnode_extened.h111 ArkUI_OptionalFloat itemHeight; member
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/
H A Dgrid_layout_info.h187 * @param itemHeight The number of rows the item occupies.
191 inline float GetItemBottomPos(int32_t line, int32_t itemHeight, float mainGap) const in GetItemBottomPos()
193 return currentOffset_ + GetHeightInRange(startMainLineIndex_, line + itemHeight, mainGap) - mainGap; in GetItemBottomPos()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/
H A Dswiper_model_impl.cpp261 if (swiperParameters.itemHeight.has_value()) { in SetIndicatorStyle()
262 indicator->SetSize(swiperParameters.itemHeight.value()); in SetIndicatorStyle()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper_indicator/indicator_common/
H A Dindicator_pattern.cpp107 swiperParameters_->itemHeight = swiperIndicatorTheme->GetSize(); in GetSwiperParameters()
222 paintProperty->UpdateItemHeight(swiperParameters->itemHeight.value_or(swiperIndicatorTheme->GetSize())); in UpdatePaintProperty()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/
H A Dswiper_model.h42 std::optional<Dimension> itemHeight; member
/foundation/arkui/ace_engine/advanced_ui_component/treeview/interfaces/
H A Dtreeview.js1077 Row.height(item.k6().v3?.itemHeight);
1083 Image.height(item.k6().v3?.itemHeight);
3951 Row.height(this.item.k6().v3?.itemHeight);
3957 Image.height(this.item.k6().v3?.itemHeight);
4022 TextInput.height(this.item.k6().inputText?.itemHeight);
4133 Row.height(this.item.k6().x3?.itemHeight);
4142 Image.height(this.item.k6().x3?.itemHeight);
4222 set itemHeight(height) {
4226 get itemHeight() {
4240 constructor(w4, x4, itemWidth, itemHeight, y
[all...]
/foundation/arkui/ace_engine/test/unittest/core/pattern/text_picker/
H A Dtext_picker_model_test_ng.cpp394 Dimension itemHeight = 18.0_vp; in HWTEST_F() local
395 TextPickerModelNG::SetDefaultPickerItemHeight(AceType::RawPtr(frameNode), itemHeight); in HWTEST_F() local
397 itemHeight.ConvertToPx()); in HWTEST_F()

Completed in 29 milliseconds

12