Home
last modified time | relevance | path

Searched refs:indicatorHeight (Results 1 – 12 of 12) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper_indicator/digit_indicator/
H A Ddigit_indicator_layout_algorithm.cpp46 auto indicatorHeight = 0.0f; in Measure() local
53 if (indicatorHeight < textFrameSize.Height()) { in Measure()
54 indicatorHeight = textFrameSize.Height(); in Measure()
63 …if (LessNotEqual(indicatorHeight, swiperIndicatorTheme->GetIndicatorDigitHeight().ConvertToPx())) { in Measure()
64 indicatorHeight = swiperIndicatorTheme->GetIndicatorDigitHeight().ConvertToPx(); in Measure()
67 SizeF frameSize = { indicatorWidth, indicatorHeight }; in Measure()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper_indicator/indicator_common/
H A Dswiper_indicator_utils.h55 float indicatorWidth, float indicatorHeight) in CalcIndicatrFrameOffSet() argument
102 swiperHeight, indicatorHeight, direction)}; in CalcIndicatrFrameOffSet()
171 … float swiperHeight, float indicatorHeight, const Axis& direction) in CalcIndicatrOffsetY() argument
175 auto topValue = GetValidEdgeLength(swiperHeight, indicatorHeight, top.value()); in CalcIndicatrOffsetY()
178 auto bottomValue = GetValidEdgeLength(swiperHeight, indicatorHeight, bottom.value()); in CalcIndicatrOffsetY()
179 … offsetY = swiperHeight - indicatorHeight - bottomValue - swiperPaddingBottom - borderWidthBottom; in CalcIndicatrOffsetY()
182 offsetY = swiperHeight - indicatorHeight - swiperPaddingBottom - borderWidthBottom; in CalcIndicatrOffsetY()
185 swiperPaddingTop + borderWidthTop - indicatorHeight) * 0.5f; in CalcIndicatrOffsetY()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/tabs/
H A Dtab_bar_modifier_test_ng.cpp83 float indicatorHeight = 1.0f; variable
84 tabBarModifier->SetIndicatorHeight(indicatorHeight);
85 EXPECT_EQ(tabBarModifier->indicatorHeight_->Get(), indicatorHeight);
87 tabBarModifier->SetIndicatorHeight(indicatorHeight);
155 float indicatorHeight = 1.0f; variable
161 tabBarModifier->SetIndicatorHeight(indicatorHeight);
168 EXPECT_EQ(tabBarModifier->indicatorHeight_->Get(), indicatorHeight);
173 indicatorHeight = -1.0f;
179 tabBarModifier->SetIndicatorHeight(indicatorHeight);
186 EXPECT_EQ(tabBarModifier->indicatorHeight_->Get(), indicatorHeight);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper_indicator/dot_indicator/
H A Ddot_indicator_layout_algorithm.cpp78 auto indicatorHeight = static_cast<float>(((userItemHeight > userSelectedItemHeight) ? in Measure() local
90 indicatorHeight_ = indicatorHeight; in Measure()
92 indicatorWidth_ = indicatorHeight; in Measure()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/swiper/
H A Drosen_render_swiper.cpp186 double indicatorHeight; in UpdateIndicator() local
191 indicatorHeight = digitalIndicatorSize.Height(); in UpdateIndicator()
194 indicatorHeight = selectedSize; in UpdateIndicator()
197 indicatorHeight = width; in UpdateIndicator()
217 int32_t top = GetValidEdgeLength(swiperHeight_, indicatorHeight, indicator_->GetTop()); in UpdateIndicator()
220 … int32_t bottom = GetValidEdgeLength(swiperHeight_, indicatorHeight, indicator_->GetBottom()); in UpdateIndicator()
221 position.SetY(swiperHeight_ - indicatorHeight - bottom); in UpdateIndicator()
224 indicatorHeight += NormalizeToPx(INDICATOR_POINT_PADDING_TOP); in UpdateIndicator()
225 position.SetY(swiperHeight_ - indicatorHeight); in UpdateIndicator()
227 position.SetY((swiperHeight_ - indicatorHeight) / 2.0); in UpdateIndicator()
H A Drender_swiper.cpp2036 double indicatorHeight = indicatorData.indicatorPaintData.height; in UpdateIndicatorPosition() local
2059 int32_t top = GetValidEdgeLength(swiperHeight_, indicatorHeight, indicator_->GetTop()); in UpdateIndicatorPosition()
2063 … int32_t bottom = GetValidEdgeLength(swiperHeight_, indicatorHeight, indicator_->GetBottom()); in UpdateIndicatorPosition()
2065 position.SetY(swiperHeight_ - indicatorHeight - bottom); in UpdateIndicatorPosition()
2072 position.SetY((layoutSize.Height() - indicatorHeight) / 2.0); in UpdateIndicatorPosition()
2174 double indicatorHeight = indicatorData.indicatorPaintData.height; in UpdatePositionOnStretch() local
2208 position.SetY(indicatorZoomMinPositionRB_.GetY() - indicatorHeight + in UpdatePositionOnStretch()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/
H A Dtab_bar_modifier.cpp79 void TabBarModifier::SetIndicatorHeight(float indicatorHeight) in SetIndicatorHeight() argument
82 indicatorHeight_->Set(indicatorHeight); in SetIndicatorHeight()
H A Dtab_bar_modifier.h43 void SetIndicatorHeight(float indicatorHeight);
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_tab_content.cpp172 CalcDimension indicatorHeight; in SetIndicator() local
182 if (!info->IsObject() || !ParseJsDimensionVp(obj->GetProperty("height"), indicatorHeight) || in SetIndicator()
183 indicatorHeight.Value() < 0.0f || indicatorHeight.Unit() == DimensionUnit::PERCENT) { in SetIndicator()
189 indicator.height = indicatorHeight; in SetIndicator()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/
H A Dswiper_layout_algorithm.cpp1083 auto indicatorHeight = 0.0f; in PlaceDigitChild() local
1089 if (indicatorHeight < textFrameSize.Height()) { in PlaceDigitChild()
1090 indicatorHeight = textFrameSize.Height(); in PlaceDigitChild()
1098 …if (LessNotEqual(indicatorHeight, swiperIndicatorTheme->GetIndicatorDigitHeight().ConvertToPx())) { in PlaceDigitChild()
1099 indicatorHeight = swiperIndicatorTheme->GetIndicatorDigitHeight().ConvertToPx(); in PlaceDigitChild()
1108 swiperLayoutProperty, indicatorlayoutProperty, indicatorWidth, indicatorHeight); in PlaceDigitChild()
1127 if (themeHeight > indicatorHeight) { in PlaceDigitChild()
1128 dightPadding = (themeHeight - indicatorHeight) / 2; in PlaceDigitChild()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-container-tabcontent.md1000 @State indicatorHeight: number = 10;
1059 this.indicatorHeight = 20
1072 this.indicatorHeight = 10
1179 height: this.indicatorHeight, //下划线高度
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-container-tabcontent.md694 @State indicatorHeight: number = 10;
753 this.indicatorHeight = 20
766 this.indicatorHeight = 10
873 height: this.indicatorHeight, // Indicator height.