Home
last modified time | relevance | path

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

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rating/
H A Drating_modifier.cpp109 const int32_t foregroundImageRepeatNum = ceil(drawScore); in PaintStar() local
110 const float secondaryImageRepeatNum = foregroundImageRepeatNum - drawScore; in PaintStar()
111 const int32_t backgroundImageRepeatNum = starNum - foregroundImageRepeatNum; in PaintStar()
120 for (int32_t i = 0; i < foregroundImageRepeatNum; i++) { in PaintStar()
130 …static_cast<float>(offset.GetX() + singleStarWidth * static_cast<float>(foregroundImageRepeatNum)), in PaintStar()
163 const int32_t foregroundImageRepeatNum = ceil(drawScore); in PaintReverseStar() local
164 const float secondaryImageRepeatNum = foregroundImageRepeatNum - drawScore; in PaintReverseStar()
165 const int32_t backgroundImageRepeatNum = starNum - foregroundImageRepeatNum; in PaintReverseStar()
187 for (int32_t i = 0; i < foregroundImageRepeatNum; i++) { in PaintReverseStar()