Home
last modified time | relevance | path

Searched refs:foregroundConfig_ (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rating/
H A Drating_pattern.cpp129 foregroundConfig_.srcRect_ = foregroundImageLoadingCtx_->GetSrcRect(); in OnImageLoadSuccess()
130 foregroundConfig_.dstRect_ = foregroundImageLoadingCtx_->GetDstRect(); in OnImageLoadSuccess()
173 foregroundConfig_.imageFit_ = ImageFit::FILL; in UpdatePaintConfig()
176foregroundConfig_.scaleX_ = contentSize.Width() / frameSize.Width() / static_cast<float>(starsNum); in UpdatePaintConfig()
177 foregroundConfig_.scaleY_ = contentSize.Height() / frameSize.Height(); in UpdatePaintConfig()
208 foregroundConfig_) && in CreateNodePaintMethod()
213 foregroundConfig_, secondaryConfig_, backgroundConfig_); in CreateNodePaintMethod()
343 …return ratingLayoutProperty->GetIndicator().value_or(false) || !foregroundConfig_.dstRect_.IsValid… in IsIndicator()
690 foregroundConfig_.isSvg_ = false; in LoadForeground()
709 foregroundConfig_.isSvg_ = true; in LoadForeground()
H A Drating_pattern.h173 ImagePaintConfig foregroundConfig_; variable
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/rating/
H A Drating_test_ng.cpp537 EXPECT_TRUE(ratingPattern->foregroundConfig_.isSvg_);
589 EXPECT_TRUE(ratingPattern->foregroundConfig_.isSvg_);
619 EXPECT_TRUE(ratingPattern->foregroundConfig_.isSvg_);
667 EXPECT_EQ(ratingPattern->foregroundConfig_.scaleX_, scaleX);
668 EXPECT_EQ(ratingPattern->foregroundConfig_.scaleY_, scaleY);
676 EXPECT_EQ(ratingPattern->foregroundConfig_.scaleX_,
678 EXPECT_EQ(ratingPattern->foregroundConfig_.scaleY_,
1883 EXPECT_FALSE(ratingPattern->foregroundConfig_.isSvg_);
1893 EXPECT_FALSE(ratingPattern->foregroundConfig_.isSvg_);