Home
last modified time | relevance | path

Searched refs:indicatorWidth (Results 1 – 15 of 15) sorted by relevance

/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
99 swiperWidth, indicatorWidth, direction), in CalcIndicatrFrameOffSet()
148 float swiperWidth, float indicatorWidth, const Axis& direction) in CalcIndicatrOffSetX() argument
152 auto leftValue = GetValidEdgeLength(swiperWidth, indicatorWidth, left.value()); in CalcIndicatrOffSetX()
155 auto rightValue = GetValidEdgeLength(swiperWidth, indicatorWidth, right.value()); in CalcIndicatrOffSetX()
156 … offsetX = swiperWidth - indicatorWidth - rightValue - swiperPaddingRight - borderWidthRight; in CalcIndicatrOffSetX()
160 swiperPaddingLeft + borderWidthLeft - indicatorWidth) * 0.5f; in CalcIndicatrOffSetX()
162 offsetX = swiperWidth - indicatorWidth - swiperPaddingRight - borderWidthRight; in CalcIndicatrOffSetX()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/tabs/
H A Dtab_bar_modifier_test_ng.cpp66 float indicatorWidth = 1.0f; variable
68 tabBarModifier->SetIndicatorWidth(indicatorWidth);
69 EXPECT_EQ(tabBarModifier->indicatorWidth_->Get(), indicatorWidth);
71 tabBarModifier->SetIndicatorWidth(indicatorWidth);
156 float indicatorWidth = 1.0f; variable
162 tabBarModifier->SetIndicatorWidth(indicatorWidth);
169 EXPECT_EQ(tabBarModifier->indicatorWidth_->Get(), indicatorWidth);
174 indicatorWidth = -1.0f;
180 tabBarModifier->SetIndicatorWidth(indicatorWidth);
187 EXPECT_EQ(tabBarModifier->indicatorWidth_->Get(), indicatorWidth);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper_indicator/digit_indicator/
H A Ddigit_indicator_layout_algorithm.cpp45 auto indicatorWidth = INDICATOR_PADDING.ConvertToPx() * 2; in Measure() local
52 indicatorWidth += textFrameSize.Width(); in Measure()
67 SizeF frameSize = { indicatorWidth, indicatorHeight }; in Measure()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper_indicator/dot_indicator/
H A Ddot_indicator_layout_algorithm.cpp85 auto indicatorWidth = in Measure() local
89 indicatorWidth_ = indicatorWidth; in Measure()
93 indicatorHeight_ = indicatorWidth; in Measure()
/ohos5.0/docs/zh-cn/application-dev/performance/
H A Dscreen_flicker_solution.md146 @State indicatorWidth: number = 0;
162 this.indicatorWidth = this.textInfos[index][1];
224 .width(this.indicatorWidth)
311 this.indicatorWidth = currentIndicatorInfo.width;
317 .width(this.indicatorWidth)
356 this.indicatorWidth = width;
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/swiper/
H A Drosen_render_swiper.cpp185 double indicatorWidth; in UpdateIndicator() local
190 indicatorWidth = digitalIndicatorSize.Width(); in UpdateIndicator()
193 indicatorWidth = width; in UpdateIndicator()
196 indicatorWidth = selectedSize; in UpdateIndicator()
202 int32_t left = GetValidEdgeLength(swiperWidth_, indicatorWidth, indicator_->GetLeft()); in UpdateIndicator()
205 int32_t right = GetValidEdgeLength(swiperWidth_, indicatorWidth, indicator_->GetRight()); in UpdateIndicator()
206 position.SetX(swiperWidth_ - indicatorWidth - right); in UpdateIndicator()
209 position.SetX((swiperWidth_ - indicatorWidth) / 2.0); in UpdateIndicator()
211 indicatorWidth += NormalizeToPx(INDICATOR_POINT_PADDING_TOP); in UpdateIndicator()
212 position.SetX(swiperWidth_ - indicatorWidth); in UpdateIndicator()
H A Drender_swiper.cpp1875 double indicatorWidth = 0.0; in GetIndicatorWidth() local
1890 indicatorWidth = lastItemEdge + indicatorData.startEndPadding + deltaPadding; in GetIndicatorWidth()
1899 indicatorWidth = lastItemEdge + indicatorData.startEndPadding; in GetIndicatorWidth()
1901 return indicatorWidth; in GetIndicatorWidth()
2035 double indicatorWidth = indicatorData.indicatorPaintData.width; in UpdateIndicatorPosition() local
2041 int32_t left = GetValidEdgeLength(swiperWidth_, indicatorWidth, indicator_->GetLeft()); in UpdateIndicatorPosition()
2045 int32_t right = GetValidEdgeLength(swiperWidth_, indicatorWidth, indicator_->GetRight()); in UpdateIndicatorPosition()
2047 position.SetX(swiperWidth_ - indicatorWidth - right); in UpdateIndicatorPosition()
2050 position.SetX((layoutSize.Width() - indicatorWidth) / 2.0); in UpdateIndicatorPosition()
2173 double indicatorWidth = indicatorData.indicatorPaintData.width; in UpdatePositionOnStretch() local
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/
H A Dtab_bar_modifier.cpp72 void TabBarModifier::SetIndicatorWidth(float indicatorWidth) in SetIndicatorWidth() argument
75 indicatorWidth_->Set(indicatorWidth); in SetIndicatorWidth()
H A Dtab_bar_modifier.h41 void SetIndicatorWidth(float indicatorWidth);
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_tab_content.cpp173 CalcDimension indicatorWidth; in SetIndicator() local
191 if (!info->IsObject() || !ParseJsDimensionVp(obj->GetProperty("width"), indicatorWidth) || in SetIndicator()
192 indicatorWidth.Value() < 0.0f || indicatorWidth.Unit() == DimensionUnit::PERCENT) { in SetIndicator()
195 indicator.width = indicatorWidth; in SetIndicator()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/
H A Dswiper_layout_algorithm.cpp1082 auto indicatorWidth = INDICATOR_PADDING.ConvertToPx() * 2.0; in PlaceDigitChild() local
1088 indicatorWidth += textFrameSize.Width(); in PlaceDigitChild()
1108 swiperLayoutProperty, indicatorlayoutProperty, indicatorWidth, indicatorHeight); in PlaceDigitChild()
1309 …auto indicatorWidth = indicatorPadding + allPointDiameterSum + allPointSpaceSum + indicatorPadding; in ArrowLayout() local
1311 indicatorWidth) * 0.5f; in ArrowLayout()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-container-tabcontent.md999 @State indicatorWidth: number = 40;
1091 this.indicatorWidth = 30
1104 this.indicatorWidth = 50
1180 width: this.indicatorWidth, //下划线宽度
H A Dts-container-tabs.md1560 @State indicatorWidth: number = 0
1631 .width(this.indicatorWidth)
1671 this.indicatorWidth = width
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-container-tabcontent.md693 @State indicatorWidth: number = 40;
785 this.indicatorWidth = 30
798 this.indicatorWidth = 50
874 width: this.indicatorWidth, // Indicator width.
H A Dts-container-tabs.md1558 @State indicatorWidth: number = 0
1629 .width(this.indicatorWidth)
1669 this.indicatorWidth = width