/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper_indicator/indicator_common/ |
H A D | swiper_indicator_utils.h | 105 … static float GetValidEdgeLength(float swiperLength, float indicatorLength, const Dimension& edge) in GetValidEdgeLength() function 152 auto leftValue = GetValidEdgeLength(swiperWidth, indicatorWidth, left.value()); in CalcIndicatrOffSetX() 155 auto rightValue = GetValidEdgeLength(swiperWidth, indicatorWidth, right.value()); in CalcIndicatrOffSetX() 175 auto topValue = GetValidEdgeLength(swiperHeight, indicatorHeight, top.value()); in CalcIndicatrOffsetY() 178 auto bottomValue = GetValidEdgeLength(swiperHeight, indicatorHeight, bottom.value()); in CalcIndicatrOffsetY()
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/swiper/ |
H A D | swiper_indicator_layout_test_ng.cpp | 278 …EXPECT_EQ(algorithm->GetValidEdgeLength(100.0, 40.0, Dimension(0.7, DimensionUnit::PERCENT)), 60.0… 279 …EXPECT_EQ(algorithm->GetValidEdgeLength(100.0, 40.0, Dimension(0.5, DimensionUnit::PERCENT)), 50.0… 280 …EXPECT_EQ(algorithm->GetValidEdgeLength(100.0, 20.0, Dimension(0.0, DimensionUnit::PERCENT)), 0.0); 281 EXPECT_EQ(algorithm->GetValidEdgeLength(100.0, 40.0, Dimension(70.0, DimensionUnit::PX)), 60.0); 282 EXPECT_EQ(algorithm->GetValidEdgeLength(-10.0, 40.0, Dimension(-20.0, DimensionUnit::PX)), 0.0);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper_indicator/dot_indicator/ |
H A D | dot_indicator_layout_algorithm.cpp | 127 double DotIndicatorLayoutAlgorithm::GetValidEdgeLength( in GetValidEdgeLength() function in OHOS::Ace::NG::DotIndicatorLayoutAlgorithm 130 return SwiperIndicatorUtils::GetValidEdgeLength(swiperLength, indicatorLength, edge); in GetValidEdgeLength()
|
H A D | dot_indicator_layout_algorithm.h | 54 …static double GetValidEdgeLength(float swiperLength, float indicatorLength, const Dimension& edge);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/swiper/ |
H A D | rosen_render_swiper.cpp | 202 int32_t left = GetValidEdgeLength(swiperWidth_, indicatorWidth, indicator_->GetLeft()); in UpdateIndicator() 205 int32_t right = GetValidEdgeLength(swiperWidth_, indicatorWidth, indicator_->GetRight()); in UpdateIndicator() 217 int32_t top = GetValidEdgeLength(swiperHeight_, indicatorHeight, indicator_->GetTop()); in UpdateIndicator() 220 … int32_t bottom = GetValidEdgeLength(swiperHeight_, indicatorHeight, indicator_->GetBottom()); in UpdateIndicator()
|
H A D | render_swiper.h | 355 …double GetValidEdgeLength(double swiperLength, double indicatorLength, const Dimension& edge) cons…
|
H A D | render_swiper.cpp | 1850 double RenderSwiper::GetValidEdgeLength(double swiperLength, double indicatorLength, const Dimensio… in GetValidEdgeLength() function in OHOS::Ace::RenderSwiper 2041 int32_t left = GetValidEdgeLength(swiperWidth_, indicatorWidth, indicator_->GetLeft()); in UpdateIndicatorPosition() 2045 int32_t right = GetValidEdgeLength(swiperWidth_, indicatorWidth, indicator_->GetRight()); in UpdateIndicatorPosition() 2059 int32_t top = GetValidEdgeLength(swiperHeight_, indicatorHeight, indicator_->GetTop()); in UpdateIndicatorPosition() 2063 … int32_t bottom = GetValidEdgeLength(swiperHeight_, indicatorHeight, indicator_->GetBottom()); in UpdateIndicatorPosition()
|